aboutsummaryrefslogtreecommitdiffstats
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
commit8dceed3e9e3dda2a11e16ab8cf200d97561857d2 (patch)
treea05bd559cc211734b567326f2ccad675b3587884
parent4b33a7aac8b77777c3a59e94b2f82d365e421877 (diff)
downloadprosody-8dceed3e9e3dda2a11e16ab8cf200d97561857d2.tar.gz
prosody-8dceed3e9e3dda2a11e16ab8cf200d97561857d2.zip
migrator: Inject data- and plugin paths during build
Same way as with the prosody and prosodyctl executables
-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