adding nginx config support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user