and forgot to add nginx.conf

This commit is contained in:
Martin Treide-Heuser 2018-06-18 10:40:03 +02:00
parent 273437d034
commit fee526faa8

View File

@ -11,7 +11,7 @@ fi
# Set log output to STDOUT if wanted (LOG_TO_STDOUT=true) # Set log output to STDOUT if wanted (LOG_TO_STDOUT=true)
if [ "$LOG_TO_STDOUT" == "true" ]; then if [ "$LOG_TO_STDOUT" == "true" ]; then
chmod o+w /dev/stdout chmod o+w /dev/stdout
sed -i "s/.*error_log.*$/error_log \/dev\/stdout warn;/" sed -i "s/.*error_log.*$/error_log \/dev\/stdout warn;/" /etc/nginx/nginx.conf
echo "Logging to STDOUT activated" > /dev/stdout echo "Logging to STDOUT activated" > /dev/stdout
fi fi