fix webroot

This commit is contained in:
Ric Harvey
2016-07-26 10:54:54 +01:00
parent 79f3a36a9d
commit 9a9f098d2c

View File

@@ -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