# HG changeset patch # User Kim Alvefur # Date 1492623106 -7200 # Node ID dd3191974f2a365cb93217ccc9742b35caabc926 # Parent 57192cf193c77538f38f753b343b421317d8aa39 prosodyctl: Allow continuing to run as root (fixes #893) diff -r 57192cf193c7 -r dd3191974f2a prosodyctl --- a/prosodyctl Wed Apr 19 06:47:02 2017 +0200 +++ b/prosodyctl Wed Apr 19 19:31:46 2017 +0200 @@ -141,7 +141,7 @@ 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;