aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_version.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2010-08-01 15:56:52 +0200
committerKim Alvefur <zash@zash.se>2010-08-01 15:56:52 +0200
commit9b900ecc5f0733f848655f39c6d49f2d0f6dc9f4 (patch)
tree5b838889c1791140ed67519821631d47cc62f0a3 /plugins/mod_version.lua
parent42d53ec2cf2cec4e3ee1816d94ff0afe8a95fb90 (diff)
downloadprosody-9b900ecc5f0733f848655f39c6d49f2d0f6dc9f4.tar.gz
prosody-9b900ecc5f0733f848655f39c6d49f2d0f6dc9f4.zip
mod_version: Make the command used to get OS version configurable
Diffstat (limited to 'plugins/mod_version.lua')
-rw-r--r--plugins/mod_version.lua2
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