fix webroot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user