- should groupmod if NOT equal, I think master
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 27 Jan 2009 21:57:44 +0000 (21:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PowerChutePlus.spec -> 1.29

PowerChutePlus.spec

index 1800b62..3fb182a 100644 (file)
@@ -103,7 +103,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %pre
 # move to trigger?
-if [ -n "`/usr/bin/getgid pwrchute`" ] && [ "`/usr/bin/getgid pwrchute`" = 233 ]; then
+if [ -n "`/usr/bin/getgid pwrchute 2>/dev/null`" ] && [ "`/usr/bin/getgid pwrchute`" != 233 ]; then
        /usr/sbin/groupmod -g 233 pwrchute
        chgrp pwrchute %{_sysconfdir}/powerchute.ini
        /usr/sbin/usermod -u 233 -g 233 pwrchute
This page took 0.085882 seconds and 4 git commands to generate.