aboutsummaryrefslogtreecommitdiffstats
path: root/util/startup.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-22 21:46:05 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-22 21:46:05 +0000
commit218854117a4c1b918a0e6e6c3349c8afd2fdc3cc (patch)
tree7541988c5426745e8e5fe7bd6279e6aa52cc3757 /util/startup.lua
parentfd412010f4efb8a3930f28d69942707d3d8c28e0 (diff)
downloadprosody-218854117a4c1b918a0e6e6c3349c8afd2fdc3cc.tar.gz
prosody-218854117a4c1b918a0e6e6c3349c8afd2fdc3cc.zip
util.startup: Restore user switching
Diffstat (limited to 'util/startup.lua')
-rw-r--r--util/startup.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua
index 627c7015..45d5c5c2 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -484,10 +484,11 @@ end
-- prosodyctl only
function startup.prosodyctl()
startup.read_config();
+ startup.init_global_state();
startup.chdir();
+ startup.switch_user();
startup.check_dependencies();
startup.force_console_logging();
- startup.init_global_state();
startup.init_logging();
startup.log_dependency_warnings();
startup.check_unwriteable();