diff options
author | Kim Alvefur <zash@zash.se> | 2024-03-24 20:39:42 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-03-24 20:39:42 +0100 |
commit | e76620ad107cf3bda9dac444c7caecd2aad708e2 (patch) | |
tree | 557c8b583868206413ec4b011bb807a85e8c3fd5 /util | |
parent | c2c82a10d3839afe8f74a29588723096c08ac1f8 (diff) | |
download | prosody-e76620ad107cf3bda9dac444c7caecd2aad708e2.tar.gz prosody-e76620ad107cf3bda9dac444c7caecd2aad708e2.zip |
util.startup: Check root after detecting platform and reading config (thanks SigmaTel71)
Ensures that startup.detect_platform() runs so know whether to use the
POSIX method of checking the current user or something else. Also after
reading the config so we know whether the root override setting is set.
Diffstat (limited to 'util')
-rw-r--r-- | util/startup.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua index 3ec3f375..76c901ba 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -861,11 +861,11 @@ function startup.prosody() -- These actions are in a strict order, as many depend on -- previous steps to have already been performed prosody.process_type = "prosody"; - startup.check_user(); startup.parse_args(); startup.init_global_state(); startup.read_config(); startup.init_logging(); + startup.check_user(); startup.init_gc(); startup.init_errors(); startup.sanity_check(); |