Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
nrpe
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 17
[-]
[+]
Changed
nrpe.spec
@@ -117,14 +117,18 @@ fi %post -if [ -f /etc/sudoers ] ; then +if [ -d /etc/sudoers.d ] ; then + cat > /etc/sudoers.d/50_nagios << EOF +nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ +Defaults:nagios !requiretty +Defaults:nagios !env_keep +EOF +chmod 0440 /etc/sudoers.d/50_nagios + +elif [ -f /etc/sudoers ] ; then if [ -z "`grep ^nagios /etc/sudoers`" ] ; then echo "nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/" >> /etc/sudoers fi -else - if [ -d /etc/sudoers.d ] ; then - echo "nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/" > /etc/sudoers.d/nagios-plugins - fi fi %build