init scripts for gmg
[fai-configs.git] / scripts / GMG / 15_install_gmg.sh
... / ...
CommitLineData
1#!/bin/bash
2
3fcopy -Bv /etc/init.d/install-mediagoblin
4fcopy -Bv /etc/init.d/mediagoblin-paster
5fcopy -Bv /etc/init.d/mediagoblin-celery-worker
6
7$ROOTCMD update-rc.d install-mediagoblin defaults
8sed 's^GMG_PATH_TOKEN^'$GMG_PATH'^g' -i $target/etc/init.d/install-mediagoblin
9sed 's^GMG_PATH_TOKEN^'$GMG_PATH'^g' -i $target/etc/init.d/mediagoblin-celery-worker
10sed 's^GMG_PATH_TOKEN^'$GMG_PATH'^g' -i $target/etc/init.d/mediagoblin-paster