aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-08 18:02:56 +0100
committerKim Alvefur <zash@zash.se>2018-12-08 18:02:56 +0100
commit42f4b6b225edf608828ca0716934c41a690964db (patch)
tree37cbe19c4914a6b6a3966afec9d58e1ec71433cd
parentce03153c84ca4f2ef38daa09ab078d6e1a092469 (diff)
downloadprosody-42f4b6b225edf608828ca0716934c41a690964db.tar.gz
prosody-42f4b6b225edf608828ca0716934c41a690964db.zip
prosodyctl: about: Report the current operating system according to uname
-rwxr-xr-xprosodyctl7
1 files changed, 7 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index a628ed2b..f6812e23 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -363,6 +363,13 @@ function commands.about(arg)
.."\n ";
end)));
print("");
+ local have_pposix, pposix = pcall(require, "util.pposix");
+ if have_pposix and pposix.uname then
+ print("# Operating system");
+ local uname, err = pposix.uname();
+ print(uname and uname.sysname .. " " .. uname.release or "Unknown POSIX", err or "");
+ print("");
+ end
print("# Lua environment");
print("Lua version: ", _G._VERSION);
print("");