From 79f3a36a9d4afebad22131cf060769b226e9a315 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Tue, 26 Jul 2016 10:42:55 +0100 Subject: [PATCH] revert webroot in start.sh so it support webroot as a sub directory of your repo --- scripts/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/start.sh b/scripts/start.sh index 8ceba16..a299f80 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -29,15 +29,15 @@ if [ ! -z "$GIT_NAME" ]; then fi # Dont pull code down if the .git folder exists -if [ ! -d "${webroot}/.git" ]; then +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 if [ ! -z "$GIT_BRANCH" ]; then - git clone -b $GIT_BRANCH $GIT_REPO $webroot + git clone -b $GIT_BRANCH $GIT_REPO /var/www/html else - git clone $GIT_REPO $webroot + git clone $GIT_REPO /var/www/html fi fi fi