@@ -116,7 +116,9 @@
%post
if [ -f /etc/sudoers ] ; then
- echo "nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/" >> /etc/sudoers
+ if [ -z "`grep ^nagios /etc/sudoers`" ] ; then
+ echo "nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/" >> /etc/sudoers
+ fi
fi
%build
Username
Password
Cancel