Exim logging
This commit is contained in:
parent
814bd711b6
commit
e6e9f9d771
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue