]> git.pld-linux.org Git - packages/PowerChutePlus.git/commitdiff
- 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 1800b6210bfc1bdc7d88624b53988db5b093bda2..3fb182a2df6d902f96dad1d5e8e29171b6a06ce5 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.059461 seconds and 4 git commands to generate.