ghost: fix config file

This commit is contained in:
Wonderfall 2017-07-20 18:23:28 +02:00
parent 15e04fdfa2
commit d4443979d9

View File

@ -10,13 +10,16 @@ rm -rf /ghost/content/themes/casper &>/dev/null
cp -r /ghost/casper themes/casper &>/dev/null cp -r /ghost/casper themes/casper &>/dev/null
cd /ghost cd /ghost
if [ ! -f /ghost/config.production.json ]; then if [ ! -f /ghost/content/ghost.conf ]; then
echo echo
echo "INFO : No configuration file was provided, an example will be used" echo "INFO : No configuration file was provided, an example will be used"
echo " You can access and modify it in the volume you mounted" echo " You can access and modify it in the volume you mounted"
echo " Restart in order to apply your changes!" echo " Restart in order to apply your changes!"
echo echo
mv /usr/local/etc/ghost.example.conf /ghost/content/ghost.conf mv /usr/local/etc/ghost.example.conf /ghost/content/ghost.conf
fi
if [ ! -f /ghost/config.production.json ]; then
ln -s content/ghost.conf config.production.json ln -s content/ghost.conf config.production.json
fi fi