docs(): update readme

This commit is contained in:
Hardware
2018-06-22 09:13:40 +02:00
parent 7f397ef46f
commit fc8124dc77
3 changed files with 5 additions and 4 deletions

View File

@@ -9,10 +9,11 @@ if [ -d "/rainloop/data/_data_/_default_/plugins/postfixadmin-change-password" ]
fi
# Set log output to STDOUT if wanted (LOG_TO_STDOUT=true)
if [ "$LOG_TO_STDOUT" == "true" ]; then
if [ "$LOG_TO_STDOUT" = true ]; then
echo "[INFO] Logging to stdout activated"
chmod o+w /dev/stdout
sed -i "s/.*error_log.*$/error_log \/dev\/stdout warn;/" /etc/nginx/nginx.conf
echo "Logging to STDOUT activated" > /dev/stdout
sed -i "s/.*error_log.*$/error_log = \/dev\/stdout/" /etc/php7/php-fpm.conf
fi
# Add postfixadmin-change-password plugin