Exim logging

This commit is contained in:
Bob Mottram 2015-10-31 23:05:01 +00:00
parent 814bd711b6
commit e6e9f9d771
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,9 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then
sed -i 's|info = "/dev/null";|info = "/var/log/prosody/prosody.log";|g' /etc/prosofy/prosody.cfg.lua
sed -i 's|error = "/dev/null";|error = "/var/log/prosody/prosody.err";|g' /etc/prosofy/prosody.cfg.lua
fi
if [ -d /etc/exim4 ]; then
sed -i 's|log_selector =.*|log_selector = MAIN_LOG_SELECTOR|g' /etc/exim4/conf.d/main/90_exim4-config_log_selector
fi
else
if [ -d /etc/nginx ]; then
for filename in /etc/nginx/sites-available/* ; do
@ -63,6 +66,9 @@ else
sed -i 's|info = "/var/log/prosody/prosody.log";|info = "/dev/null";|g' /etc/prosofy/prosody.cfg.lua
sed -i 's|error = "/var/log/prosody/prosody.err";|error = "/dev/null";|g' /etc/prosofy/prosody.cfg.lua
fi
if [ -d /etc/exim4 ]; then
sed -i 's|log_selector =.*|log_selector = -all|g' /etc/exim4/conf.d/main/90_exim4-config_log_selector
fi
fi
if [ -d /etc/nginx ]; then