Changeset

8665:4b260a3f8b94

util.startup: Restore user switching
author Matthew Wild <mwild1@gmail.com>
date Thu, 22 Mar 2018 21:46:05 +0000
parents 8664:d49acc9a8da2
children 8666:57780ba1938f
files util/startup.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/startup.lua	Thu Mar 22 21:45:38 2018 +0000
+++ b/util/startup.lua	Thu Mar 22 21:46:05 2018 +0000
@@ -484,10 +484,11 @@
 -- 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();