Changeset

10725:ddc2607ec89e

migrator: Inject data- and plugin paths during build Same way as with the prosody and prosodyctl executables
author Kim Alvefur <zash@zash.se>
date Sun, 19 Apr 2020 01:09:21 +0200
parents 10724:7835b9f14cb8
children 10726:5d544b5e7d82
files tools/migration/Makefile
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/migration/Makefile	Sat Apr 18 16:18:41 2020 +0200
+++ b/tools/migration/Makefile	Sun Apr 19 01:09:21 2020 +0200
@@ -28,7 +28,9 @@
 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