aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-01-09 15:52:50 +0100
committerKim Alvefur <zash@zash.se>2022-01-09 15:52:50 +0100
commit07c3f35ab8e11f758298706b6a1f6f85dcc7092c (patch)
tree8977dc70c0615add40e9a4b61bab321703a6b233 /tools
parente9b2be9e444c35de0121e088e5fe857aea8397ef (diff)
downloadprosody-07c3f35ab8e11f758298706b6a1f6f85dcc7092c.tar.gz
prosody-07c3f35ab8e11f758298706b6a1f6f85dcc7092c.zip
migrator: Also migrate host/non-user archive data
Needed for things like mod_http_file_share
Diffstat (limited to 'tools')
-rw-r--r--tools/migration/prosody-migrator.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/migration/prosody-migrator.lua b/tools/migration/prosody-migrator.lua
index bb8c8fdf..e50fcc76 100644
--- a/tools/migration/prosody-migrator.lua
+++ b/tools/migration/prosody-migrator.lua
@@ -202,9 +202,8 @@ local migration_runner = async.runner(function (job)
local destination = assert(output_driver:open(store, typ));
local migrate = assert(migrate_once[typ], "Unknown store type: "..typ);
- if typ == "keyval" then -- host data
- migrate(origin, destination, nil);
- end
+
+ migrate(origin, destination, nil); -- host data
for user in users(origin, host) do
migrate(origin, destination, user);