diff options
author | Kim Alvefur <zash@zash.se> | 2010-08-01 15:56:52 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2010-08-01 15:56:52 +0200 |
commit | 9b900ecc5f0733f848655f39c6d49f2d0f6dc9f4 (patch) | |
tree | 5b838889c1791140ed67519821631d47cc62f0a3 | |
parent | 42d53ec2cf2cec4e3ee1816d94ff0afe8a95fb90 (diff) | |
download | prosody-9b900ecc5f0733f848655f39c6d49f2d0f6dc9f4.tar.gz prosody-9b900ecc5f0733f848655f39c6d49f2d0f6dc9f4.zip |
mod_version: Make the command used to get OS version configurable
-rw-r--r-- | plugins/mod_version.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua index 69e914c0..a34ce6f2 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -16,7 +16,7 @@ if not module:get_option("hide_os_type") then if os.getenv("WINDIR") then version = "Windows"; else - local uname = io.popen("uname"); + local uname = io.popen(module:get_option("os_version_command") or "uname"); if uname then version = uname:read("*a"); else |