Software /
code /
prosody
Diff
util/startup.lua @ 8665:4b260a3f8b94
util.startup: Restore user switching
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 22 Mar 2018 21:46:05 +0000 |
parent | 8664:d49acc9a8da2 |
child | 8666:57780ba1938f |
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();