aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration/prosody-migrator.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-29 14:06:14 +0200
committerKim Alvefur <zash@zash.se>2021-07-29 14:06:14 +0200
commit08e7a84274c58e15a00fff28e0fb27ac66272305 (patch)
treeb0113b7fe136a1d5f4873741386800e5135cdfe9 /tools/migration/prosody-migrator.lua
parentcc0f3b6f24ee497b12331359cee859649208d553 (diff)
downloadprosody-08e7a84274c58e15a00fff28e0fb27ac66272305.tar.gz
prosody-08e7a84274c58e15a00fff28e0fb27ac66272305.zip
migrator: Trick net.server into thinking the config is loaded
Fixes "Loading outside Prosody or Prosody not yet initialized"
Diffstat (limited to 'tools/migration/prosody-migrator.lua')
-rw-r--r--tools/migration/prosody-migrator.lua1
1 files changed, 1 insertions, 0 deletions
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