]> git.pld-linux.org Git - packages/nagios-nrpe.git/commitdiff
- silence error from netsaint uid check
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 9 Apr 2005 17:56:15 +0000 (17:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-nrpe.spec -> 1.13

nagios-nrpe.spec

index 85c4b8c65ae0e8b4364329a3acf7b2795420dbcd..a3fa0801769daacc680dd587e42899a709e33813 100644 (file)
@@ -4,7 +4,7 @@ Summary:        Nagios remote plugin execution service/plugin
 Summary(pl):   Demon i wtyczka zdalnego wywo³ywania wtyczek Nagios
 Name:          nagios-nrpe
 Version:       2.0
-Release:       2
+Release:       2.2
 License:       GPL v2
 Group:         Networking
 Source0:       http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
@@ -96,7 +96,7 @@ if [ -n "`getgid %{nsgrp}`" ]; then
                exit 1
        fi
 else
-       if [ -n "`getgid netsaint`" -a "`getgid netsaint`" = "72" ]; then
+       if [ -n "`getgid netsaint`" ] && [ "`getgid netsaint`" = "72" ]; then
                /usr/sbin/groupmod -n %{nsgrp} netsaint
        else
                /usr/sbin/groupadd -g 72 -f %{nsgrp}
@@ -108,7 +108,7 @@ if [ -n "`id -u %{nsusr} 2>/dev/null`" ]; then
                exit 1
        fi
 else
-       if [ -n "`id -u netsaint 2>/dev/null`" -a "`id -u netsaint`" = "72" ]; then
+       if [ -n "`id -u netsaint 2>/dev/null`" ] && [ "`id -u netsaint`" = "72" ]; then
                /usr/sbin/usermod -d /tmp -l %{nsusr} netsaint
        else
                /usr/sbin/useradd -u 72 -d %{_libdir}/%{nsusr} -s /bin/false -c "%{name} User" -g %{nsgrp} %{nsusr} 1>&2
This page took 0.11478 seconds and 4 git commands to generate.