forked from evolix/evocheck
Some characters have to be escaped
This commit is contained in:
parent
9832da8b03
commit
4dc94a19b0
|
@ -951,11 +951,11 @@ if [ `uname -s` == "OpenBSD" ]; then
|
|||
|
||||
if [ "$IS_REBOOTMAIL" = 1 ]; then
|
||||
if [ -f /etc/rc.local ]; then
|
||||
grep -qE '^date | mail -s "boot/reboot of' /etc/rc.local || echo 'IS_REBOOTMAIL FAILED!'
|
||||
grep -qE '^date \| mail -s "boot/reboot of' /etc/rc.local || echo 'IS_REBOOTMAIL FAILED!'
|
||||
else
|
||||
echo 'IS_REBOOTMAIL FAILED!'
|
||||
if [[ "$VERBOSE" == 1 ]]; then
|
||||
echo "Make sure /etc/rc.local exist and 'date | mail -s \"boot/reboot of $hostname' is present!"
|
||||
echo "Make sure /etc/rc.local exist and 'date | mail -s \"boot/reboot of \$hostname' is present!"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue