Allow user to change config and scripts folder

This commit is contained in:
Roberto Bermejo Martinez
2018-09-28 21:11:22 +02:00
parent 687a6a812c
commit f2cc4b6f19
7 changed files with 37 additions and 28 deletions

View File

@@ -11,10 +11,10 @@ if [ -z "$GIT_NAME" ]; then
fi
# Try auto install for composer
if [ -f "/var/www/html/composer.lock" ]; then
composer install --no-dev --working-dir=/var/www/html
if [ -f "${WEBROOT}/composer.lock" ]; then
composer install --no-dev --working-dir=${WEBROOT}
fi
cd /var/www/html
cd ${WEBROOT}
git pull || exit 1
chown -Rf nginx:nginx /var/www/html
chown -Rf nginx:nginx ${WEBROOT}