Changeset

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
parents 11728:826d57c16d1c
children 11730:9bf8a0607d12
files tools/migration/prosody-migrator.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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