diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-19 19:31:46 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-19 19:31:46 +0200 |
commit | a3522c0f2d4a751b6c2809a82e431dc88190f657 (patch) | |
tree | 492d15ec0734be794de9f2a5aeb5759133babb14 | |
parent | c510e41dc83c616187469ac45bc8a365bed6fb41 (diff) | |
download | prosody-a3522c0f2d4a751b6c2809a82e431dc88190f657.tar.gz prosody-a3522c0f2d4a751b6c2809a82e431dc88190f657.zip |
prosodyctl: Allow continuing to run as root (fixes #893)
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -141,7 +141,7 @@ local ok, pposix = pcall(require, "util.pposix"); if ok and pposix then if pposix._VERSION ~= want_pposix_version then print(string.format("Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), want_pposix_version)); return; end current_uid = pposix.getuid(); - if current_uid == 0 and config.get("*", "run_as_root") ~= true then + if current_uid == 0 and config.get("*", "run_as_root") ~= true and arg[1] ~= "--root" then -- We haz root! local desired_user = config.get("*", "prosody_user") or "prosody"; local desired_group = config.get("*", "prosody_group") or desired_user; |