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!
|
# 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 $webroot/index.php
|
rm -Rf /var/www/html/index.php
|
||||||
if [ ! -z "$GIT_BRANCH" ]; then
|
if [ ! -z "$GIT_BRANCH" ]; then
|
||||||
git clone -b $GIT_BRANCH $GIT_REPO /var/www/html
|
git clone -b $GIT_BRANCH $GIT_REPO /var/www/html
|
||||||
else
|
else
|
||||||
@@ -72,7 +72,7 @@ if [ ! -z "$PHP_UPLOAD_MAX_FILESIZE" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Always chown webroot for better mounting
|
# Always chown webroot for better mounting
|
||||||
chown -Rf nginx.nginx $webroot
|
chown -Rf nginx.nginx /var/www/html
|
||||||
|
|
||||||
# Start supervisord and services
|
# Start supervisord and services
|
||||||
/usr/bin/supervisord -n -c /etc/supervisord.conf
|
/usr/bin/supervisord -n -c /etc/supervisord.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user