From 9a9f098d2ca93e10d1d28264cc6fa7fae8f792f7 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Tue, 26 Jul 2016 10:54:54 +0100 Subject: [PATCH] fix webroot --- scripts/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/start.sh b/scripts/start.sh index a299f80..2e0bf93 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -33,7 +33,7 @@ if [ ! -d "/var/www/html/.git" ]; then # Pull down code from git for our site! if [ ! -z "$GIT_REPO" ]; then # Remove the test index file - rm -Rf $webroot/index.php + rm -Rf /var/www/html/index.php if [ ! -z "$GIT_BRANCH" ]; then git clone -b $GIT_BRANCH $GIT_REPO /var/www/html else @@ -72,7 +72,7 @@ if [ ! -z "$PHP_UPLOAD_MAX_FILESIZE" ]; then fi # Always chown webroot for better mounting -chown -Rf nginx.nginx $webroot +chown -Rf nginx.nginx /var/www/html # Start supervisord and services /usr/bin/supervisord -n -c /etc/supervisord.conf