extra syslog check

This commit is contained in:
Bob Mottram 2018-04-19 11:43:11 +01:00
parent 54f4a246ed
commit 21ecf61c13
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ function turn_logging_off {
function turn_off_rsys_logging {
if ! grep -q '/var/log/auth.log' /etc/rsyslog.conf; then
return
if ! grep -q '/var/log/kern.log' /etc/rsyslog.conf; then
return
fi
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