From e76620ad107cf3bda9dac444c7caecd2aad708e2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 24 Mar 2024 20:39:42 +0100 Subject: 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. --- util/startup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3