image updates

This commit is contained in:
Ric Harvey
2016-01-16 21:07:43 +00:00
parent 8b94073052
commit d3fffbc3ad
3 changed files with 11 additions and 2 deletions

View File

@@ -25,6 +25,12 @@ if [ ! -z "$GIT_REPO" ]; then
chown -Rf nginx.nginx /usr/share/nginx/*
fi
# Display PHP error's or not
if [[ "$ERRORS" != "1" ]] ; then
sed -i -e "s/error_reporting =.*=/error_reporting = E_ALL/g" /etc/php5/fpm/php.ini
sed -i -e "s/display_errors =.*/display_errors = On/g" /etc/php5/fpm/php.ini
fi
# Tweak nginx to match the workers to cpu's
procs=$(cat /proc/cpuinfo |grep processor | wc -l)