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 | eb245f3dd6fb501214fabe1536a64bb76cef9c48 (patch) | |
tree | 37cbe19c4914a6b6a3966afec9d58e1ec71433cd /prosodyctl | |
parent | b80261ccbf3fbb5e0f07ccfe8b7419b48ee9bcbf (diff) | |
download | prosody-eb245f3dd6fb501214fabe1536a64bb76cef9c48.tar.gz prosody-eb245f3dd6fb501214fabe1536a64bb76cef9c48.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(""); |