]> git.pld-linux.org Git - packages/PowerChutePlus.git/blobdiff - PowerChutePlus.spec
- should groupmod if NOT equal, I think
[packages/PowerChutePlus.git] / 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.029237 seconds and 4 git commands to generate.