Commit 753f2b8e authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

bugfix: error log and pidfile should be set in start.sh regardless of whether...

bugfix: error log and pidfile should be set in start.sh regardless of whether or not pool config file is provided
parent 9125937c
......@@ -227,16 +227,16 @@ else
sed -i -r -e "s@^access\.log = .*@access.log = \"$PHP_ACCESS_LOG\"@g" /etc/php5/fpm/pool.d/$PHP_APP_NAME.conf
echo "+-- slowlog..."
sed -i -r -e "s@^slowlog = .*@slowlog = \"$PHP_SLOW_LOG\"@g" /etc/php5/fpm/pool.d/$PHP_APP_NAME.conf
# Change the default error location.
echo "+-- error log..."
sed -i "s@error_log = /var/log/php5-fpm.log@error_log = \"$PHP_ERROR_LOG\"@g" /etc/php5/fpm/php-fpm.conf
# Change the default pidfile location.
echo "+-- pidfile..."
sed -i "s@pid = .*@pid = $PHP_PID_FILE@g" /etc/php5/fpm/php-fpm.conf
fi
# Change the default error location.
echo "+-- error log..."
sed -i "s@error_log = /var/log/php5-fpm.log@error_log = \"$PHP_ERROR_LOG\"@g" /etc/php5/fpm/php-fpm.conf
# Change the default pidfile location.
echo "+-- pidfile..."
sed -i "s@pid = .*@pid = $PHP_PID_FILE@g" /etc/php5/fpm/php-fpm.conf
# let's run the darn thing,
# if there is anything to run that is
if [ $# -ne 0 ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment