From 08e7a84274c58e15a00fff28e0fb27ac66272305 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 29 Jul 2021 14:06:14 +0200 Subject: migrator: Trick net.server into thinking the config is loaded Fixes "Loading outside Prosody or Prosody not yet initialized" --- tools/migration/prosody-migrator.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/migration/prosody-migrator.lua b/tools/migration/prosody-migrator.lua index a65b2141..976feb7d 100644 --- a/tools/migration/prosody-migrator.lua +++ b/tools/migration/prosody-migrator.lua @@ -51,6 +51,7 @@ do startup.switch_user(); startup.check_dependencies(); startup.log_startup_warnings(); + prosody.config_loaded = true; startup.load_libraries(); startup.init_http_client(); end -- cgit v1.2.3