init scripts for gmg
[fai-configs.git] / scripts / GMG / 15_install_gmg.sh
index ca3b008..4a3fa3e 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/bash
 
-fcopy -v /etc/init.d/
-$ROOTCMD update-rc.d mediagoblin defaults
+fcopy -Bv /etc/init.d/install-mediagoblin
+fcopy -Bv /etc/init.d/mediagoblin-paster
+fcopy -Bv /etc/init.d/mediagoblin-celery-worker
 
+$ROOTCMD update-rc.d install-mediagoblin defaults
+sed 's^GMG_PATH_TOKEN^'$GMG_PATH'^g' -i $target/etc/init.d/install-mediagoblin
+sed 's^GMG_PATH_TOKEN^'$GMG_PATH'^g' -i $target/etc/init.d/mediagoblin-celery-worker
+sed 's^GMG_PATH_TOKEN^'$GMG_PATH'^g' -i $target/etc/init.d/mediagoblin-paster