Changes of Revision 16
[-] | Changed | nrpe.spec |
x 1
2 if [ -z "`grep ^nagios /etc/sudoers`" ] ; then 3 echo "nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/" >> /etc/sudoers 4 fi 5 +else 6 + if [ -d /etc/sudoers.d ] ; then 7 + echo "nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/" > /etc/sudoers.d/nagios-plugins 8 + fi 9 fi 10 11 %build 12 |