This commit is contained in:
Ric Harvey
2016-07-22 15:39:57 +01:00
parent c5e9e2ca6a
commit 9bd2dd0732

View File

@@ -33,7 +33,7 @@ if [ ! -d "${webroot}/.git" ]; then
# Pull down code from git for our site! # Pull down code from git for our site!
if [ ! -z "$GIT_REPO" ]; then if [ ! -z "$GIT_REPO" ]; then
# Remove the test index file # Remove the test index file
rm -Rf /var/www/html/index.php rm -Rf $webroot/index.php
if [ ! -z "$GIT_BRANCH" ]; then if [ ! -z "$GIT_BRANCH" ]; then
git clone -b $GIT_BRANCH $GIT_REPO $webroot git clone -b $GIT_BRANCH $GIT_REPO $webroot
else else
@@ -44,9 +44,9 @@ fi
# Display PHP error's or not # Display PHP error's or not
if [[ "$ERRORS" != "1" ]] ; then if [[ "$ERRORS" != "1" ]] ; then
echo php_flag[display_errors] = off >> $fpm_conf echo php_flag[display_errors] = off >> /etc/php5/php-fpm.conf
else else
echo php_flag[display_errors] = on >> $fpm_conf echo php_flag[display_errors] = on >> /etc/php5/php-fpm.conf
fi fi
# Display Version Details or not # Display Version Details or not