Mercurial > prosody-hg
comparison util/startup.lua @ 13462:720aed1f5cf2
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.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 24 Mar 2024 20:39:42 +0100 |
| parents | c673ff1075bd |
| children | 3ce550ce44ce |
comparison
equal
deleted
inserted
replaced
| 13461:c673ff1075bd | 13462:720aed1f5cf2 |
|---|---|
| 859 | 859 |
| 860 function startup.prosody() | 860 function startup.prosody() |
| 861 -- These actions are in a strict order, as many depend on | 861 -- These actions are in a strict order, as many depend on |
| 862 -- previous steps to have already been performed | 862 -- previous steps to have already been performed |
| 863 prosody.process_type = "prosody"; | 863 prosody.process_type = "prosody"; |
| 864 startup.check_user(); | |
| 865 startup.parse_args(); | 864 startup.parse_args(); |
| 866 startup.init_global_state(); | 865 startup.init_global_state(); |
| 867 startup.read_config(); | 866 startup.read_config(); |
| 868 startup.init_logging(); | 867 startup.init_logging(); |
| 868 startup.check_user(); | |
| 869 startup.init_gc(); | 869 startup.init_gc(); |
| 870 startup.init_errors(); | 870 startup.init_errors(); |
| 871 startup.sanity_check(); | 871 startup.sanity_check(); |
| 872 startup.sandbox_require(); | 872 startup.sandbox_require(); |
| 873 startup.set_function_metatable(); | 873 startup.set_function_metatable(); |
