|
@@ -83,7 +83,7 @@ function turn_logging_off {
|
83
|
83
|
}
|
84
|
84
|
|
85
|
85
|
function turn_off_rsys_logging {
|
86
|
|
- if grep -q '/var/log/auth.log' /etc/rsyslog.conf; then
|
|
86
|
+ if ! grep -q '/var/log/auth.log' /etc/rsyslog.conf; then
|
87
|
87
|
return
|
88
|
88
|
fi
|
89
|
89
|
sed -i 's|mail,news.none.*|mail,news.none /dev/null|g' /etc/rsyslog.conf
|
|
@@ -109,7 +109,7 @@ function turn_off_rsys_logging {
|
109
|
109
|
}
|
110
|
110
|
|
111
|
111
|
function turn_on_rsys_logging {
|
112
|
|
- if ! grep -q '/var/log/auth.log' /etc/rsyslog.conf; then
|
|
112
|
+ if grep -q '/var/log/auth.log' /etc/rsyslog.conf; then
|
113
|
113
|
return
|
114
|
114
|
fi
|
115
|
115
|
sed -i 's|mail,news.none.*|mail,news.none -/var/log/messages|g' /etc/rsyslog.conf
|