]> git.pld-linux.org Git - packages/nut.git/commitdiff
- be quiet about errors
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 15 Dec 2010 12:56:38 +0000 (12:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nut.spec -> 1.161

nut.spec

index 065c4ea6852010200ddd645ef80a99587ddece58..b7ff26191284d80334e8c2fc2fe26fe4e6f61486 100644 (file)
--- a/nut.spec
+++ b/nut.spec
@@ -262,7 +262,7 @@ fi
 
 %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
This page took 0.165688 seconds and 4 git commands to generate.