aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-19 01:09:21 +0200
committerKim Alvefur <zash@zash.se>2020-04-19 01:09:21 +0200
commitd2231200edaa9ad8b8b9d5374cd55b8b6b4e87a9 (patch)
treea05bd559cc211734b567326f2ccad675b3587884 /tools
parent61dfe526dc6faa3e1121961f7729d4cd074b5408 (diff)
downloadprosody-d2231200edaa9ad8b8b9d5374cd55b8b6b4e87a9.tar.gz
prosody-d2231200edaa9ad8b8b9d5374cd55b8b6b4e87a9.zip
migrator: Inject data- and plugin paths during build
Same way as with the prosody and prosodyctl executables
Diffstat (limited to 'tools')
-rw-r--r--tools/migration/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/migration/Makefile b/tools/migration/Makefile
index dc14e0da..4d916a9f 100644
--- a/tools/migration/Makefile
+++ b/tools/migration/Makefile
@@ -28,7 +28,9 @@ clean:
prosody-migrator.install: prosody-migrator.lua
sed "1s/\blua\b/$(RUNWITH)/; \
s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
- s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" \
+ s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \
+ s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \
+ s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" \
< prosody-migrator.lua > prosody-migrator.install
migrator.cfg.lua.install: migrator.cfg.lua