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

Changes of Revision 12

[-] Changed nrpe.spec
x
 
1
@@ -116,7 +116,9 @@
2
 
3
 %post
4
 if [ -f /etc/sudoers ] ; then
5
-   echo "nagios          ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/" >> /etc/sudoers
6
+   if [ -z "`grep ^nagios /etc/sudoers`" ] ; then
7
+       echo "nagios          ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/" >> /etc/sudoers
8
+   fi
9
 fi
10
 
11
 %build
12