extra syslog check
This commit is contained in:
parent
54f4a246ed
commit
21ecf61c13
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue