mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
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.
This commit is contained in:
parent
c2c82a10d3
commit
e76620ad10
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue