diff options
author | Kim Alvefur <zash@zash.se> | 2018-12-08 18:02:56 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-12-08 18:02:56 +0100 |
commit | 42f4b6b225edf608828ca0716934c41a690964db (patch) | |
tree | 37cbe19c4914a6b6a3966afec9d58e1ec71433cd /prosodyctl | |
parent | ce03153c84ca4f2ef38daa09ab078d6e1a092469 (diff) | |
download | prosody-42f4b6b225edf608828ca0716934c41a690964db.tar.gz prosody-42f4b6b225edf608828ca0716934c41a690964db.zip |
prosodyctl: about: Report the current operating system according to uname
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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(""); |