Diff

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
line wrap: on
line diff
--- a/tools/migration/prosody-migrator.lua	Thu Jul 29 13:47:26 2021 +0200
+++ b/tools/migration/prosody-migrator.lua	Thu Jul 29 14:06:14 2021 +0200
@@ -51,6 +51,7 @@
 	startup.switch_user();
 	startup.check_dependencies();
 	startup.log_startup_warnings();
+	prosody.config_loaded = true;
 	startup.load_libraries();
 	startup.init_http_client();
 end