syslog: correction in event scripts

This commit is contained in:
bergware
2019-02-07 07:54:28 +01:00
parent 84feabb3bb
commit a9ef5afd00
2 changed files with 2 additions and 2 deletions
@@ -1,6 +1,6 @@
#!/bin/bash
ETC=/etc/rsyslog.conf
if grep -q '/^#\*\.\* \?remote$' $ETC; then
if grep -qP '^#\*\.\* \?remote$' $ETC; then
sed -ri 's/^#(\*\.\* \?remote)$/\1/' $ETC
/etc/rc.d/rc.rsyslogd restart &> /dev/null
fi
@@ -1,6 +1,6 @@
#!/bin/bash
ETC=/etc/rsyslog.conf
if grep -q '/^\*\.\* \?remote$' $ETC; then
if grep -qP '^\*\.\* \?remote$' $ETC; then
sed -ri 's/^(\*\.\* \?remote)$/#\1/' $ETC
/etc/rc.d/rc.rsyslogd restart &> /dev/null
fi