From d4443979d94742f6ec29f18c1cdc38392182d9ba Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Thu, 20 Jul 2017 18:23:28 +0200 Subject: [PATCH] ghost: fix config file --- ghost/1.x/rootfs/usr/local/bin/run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghost/1.x/rootfs/usr/local/bin/run.sh b/ghost/1.x/rootfs/usr/local/bin/run.sh index cc9b2b4..8a65b8e 100644 --- a/ghost/1.x/rootfs/usr/local/bin/run.sh +++ b/ghost/1.x/rootfs/usr/local/bin/run.sh @@ -10,13 +10,16 @@ rm -rf /ghost/content/themes/casper &>/dev/null cp -r /ghost/casper themes/casper &>/dev/null cd /ghost -if [ ! -f /ghost/config.production.json ]; then +if [ ! -f /ghost/content/ghost.conf ]; then echo 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 " Restart in order to apply your changes!" echo 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 fi