Fix #1861. More explicit check for NRPE pid.

This commit is contained in:
Romain Dessort 2016-05-13 10:42:53 -04:00
parent b7c41b9181
commit 3b59217d0d

View file

@ -245,9 +245,7 @@ if [ -e /etc/debian_version ]; then
fi
if [ "$IS_NRPEPID" = 1 ]; then
! is_debianversion squeeze && grep -q "^pid_file=/var/run/nrpe.pid" /etc/nagios/nrpe.cfg && echo 'IS_NRPEPID FAILED!'
! is_debianversion squeeze && (grep -q "^pid_file=/var/run/nagios/nrpe.pid" /etc/nagios/nrpe.cfg || echo 'IS_NRPEPID FAILED!')
fi
if [ "$IS_GRSECPROCS" = 1 ]; then