Software /
code /
prosody
Comparison
tools/migration/prosody-migrator.lua @ 11729:f37cafeb75d6
migrator: Trick net.server into thinking the config is loaded
Fixes "Loading outside Prosody or Prosody not yet initialized"
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 29 Jul 2021 14:06:14 +0200 |
parent | 11728:826d57c16d1c |
child | 11730:9bf8a0607d12 |
comparison
equal
deleted
inserted
replaced
11728:826d57c16d1c | 11729:f37cafeb75d6 |
---|---|
49 startup.chdir(); | 49 startup.chdir(); |
50 startup.read_version(); | 50 startup.read_version(); |
51 startup.switch_user(); | 51 startup.switch_user(); |
52 startup.check_dependencies(); | 52 startup.check_dependencies(); |
53 startup.log_startup_warnings(); | 53 startup.log_startup_warnings(); |
54 prosody.config_loaded = true; | |
54 startup.load_libraries(); | 55 startup.load_libraries(); |
55 startup.init_http_client(); | 56 startup.init_http_client(); |
56 end | 57 end |
57 | 58 |
58 -- Command-line parsing | 59 -- Command-line parsing |