Skip to content
Permalink
Browse files

Ignore error output of log append attempt

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 12, 2019
1 parent 11956a3 commit 71508882be041a83a4e1f7c9fe299f92221e4870
Showing with 2 additions and 2 deletions.
  1. +2 −2 fixes.sh
@@ -414,10 +414,10 @@ if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
fi

# Add some error handling if nems-mailtest was run as a non-root user
if ! grep -q "if (!file_put_contents('/var/log/nagios/nagios.log'" /usr/local/nagios/libexec/nems_sendmail_service; then
if ! grep -q "if (!@file_put_contents('/var/log/nagios/nagios.log'" /usr/local/nagios/libexec/nems_sendmail_service; then
cp -f /root/nems/nems-migrator/data/1.5/nagios/plugins/nems_sendmail_service /usr/local/nagios/libexec/
fi
if ! grep -q "if (!file_put_contents('/var/log/nagios/nagios.log'" /usr/local/nagios/libexec/nems_sendmail_host; then
if ! grep -q "if (!@file_put_contents('/var/log/nagios/nagios.log'" /usr/local/nagios/libexec/nems_sendmail_host; then
cp -f /root/nems/nems-migrator/data/1.5/nagios/plugins/nems_sendmail_host /usr/local/nagios/libexec/
fi

0 comments on commit 7150888

Please sign in to comment.
You can’t perform that action at this time.