packages: nut/nut.spec - be quiet about errors

arekm arekm at pld-linux.org
Wed Dec 15 13:56:43 CET 2010


Author: arekm                        Date: Wed Dec 15 12:56:43 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- be quiet about errors

---- Files affected:
packages/nut:
   nut.spec (1.160 -> 1.161) 

---- Diffs:

================================================================
Index: packages/nut/nut.spec
diff -u packages/nut/nut.spec:1.160 packages/nut/nut.spec:1.161
--- packages/nut/nut.spec:1.160	Mon Nov 15 19:33:18 2010
+++ packages/nut/nut.spec	Wed Dec 15 13:56:38 2010
@@ -263,7 +263,7 @@
 
 %pre common
 # move to trigger?
-if [ -n "`/usr/bin/getgid ups`" ] && [ "`/usr/bin/getgid ups`" = 121 ]; then
+if [ -n "`/usr/bin/getgid ups 2> /dev/null`" ] && [ "`/usr/bin/getgid ups 2> /dev/null`" = 121 ]; then
 	/usr/sbin/groupmod -g 76 ups
 	chgrp ups %{_sysconfdir}/{upsd.conf,ups.conf,upsd.users}
 	/usr/sbin/usermod -g 76 ups
@@ -472,6 +472,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.161  2010/12/15 12:56:38  arekm
+- be quiet about errors
+
 Revision 1.160  2010/11/15 18:33:18  arekm
 - release 4
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nut/nut.spec?r1=1.160&r2=1.161&f=u



More information about the pld-cvs-commit mailing list