From 96c28157c145b9093e23799987151e1a5f0909c0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 22 Mar 2018 21:46:05 +0000 Subject: util.startup: Restore user switching --- util/startup.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util') 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(); -- cgit v1.2.3