From 5fa0bca2a0b051c55f681f832c1edf4d4016f37d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 18 Nov 2016 16:56:21 +0000 Subject: [PATCH] Message log off --- src/freedombone-logging | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-logging b/src/freedombone-logging index 068588f0..2394bf43 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -96,6 +96,7 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then sed -i 's|log_error =.*|log_error = /var/log/mysql/error.log|g' /etc/mysql/my.cnf fi + sed -i 's|mail,news.none.*|mail,news.none -/var/log/messages|g' /etc/rsyslog.conf sed -i 's|auth,authpriv.\*.*|auth,authpriv.\* /var/log/auth.log|g' /etc/rsyslog.conf sed -i 's|mail.info.*|mail.info -/var/log/mail.info|g' /etc/rsyslog.conf sed -i 's|mail.warn.*|mail.warn -/var/log/mail.warn|g' /etc/rsyslog.conf @@ -174,6 +175,7 @@ else sed -i 's|logtarget.*|logtarget = /dev/null|g' /etc/fail2ban/fail2ban.conf shred -zu /var/log/fail2ban.* fi + sed -i 's|mail,news.none.*|mail,news.none /dev/null|g' /etc/rsyslog.conf sed -i 's|auth,authpriv.\*.*|auth,authpriv.\* /dev/null|g' /etc/rsyslog.conf sed -i 's|mail.info.*|mail.info /dev/null|g' /etc/rsyslog.conf sed -i 's|mail.warn.*|mail.warn /dev/null|g' /etc/rsyslog.conf