Logoj0ke.net Open Build Service > Projects > home:netmax > nrpe > Changes
Sign Up | Log In

Changes of Revision 16

[-] Changed nrpe.spec
x
 
1
@@ -121,6 +121,10 @@
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