adding nginx config support

This commit is contained in:
Ric Harvey
2016-08-16 11:29:35 +01:00
parent 4e9bf73fe2
commit 6ecfdbdf2e

View File

@@ -51,6 +51,15 @@ if [ ! -d "/var/www/html/.git" ]; then
fi
fi
# Enable custom nginx config files if they exist
if [ -f /var/www/html/conf/nginx/nginx-site.conf ]; then
cp /var/www/html/conf/nginx/nginx-site.conf /etc/nginx/sites-available/default.conf
fi
if [ -f /var/www/html/conf/nginx/nginx-site-ssl.conf ]; then
cp /var/www/html/conf/nginx/nginx-site-ssl.conf /etc/nginx/sites-available/default-ssl.conf
fi
# Display PHP error's or not
if [[ "$ERRORS" != "1" ]] ; then
echo php_flag[display_errors] = off >> /etc/php5/php-fpm.conf