From: Jakub Bogusz Date: Tue, 27 Jan 2009 21:57:44 +0000 (+0000) Subject: - should groupmod if NOT equal, I think X-Git-Url: http://git.pld-linux.org/?p=packages%2FPowerChutePlus.git;a=commitdiff_plain;h=8cac2121521cd4dac1437d526ffdcc02dcbfd9b3 - should groupmod if NOT equal, I think Changed files: PowerChutePlus.spec -> 1.29 --- diff --git a/PowerChutePlus.spec b/PowerChutePlus.spec index 1800b62..3fb182a 100644 --- a/PowerChutePlus.spec +++ b/PowerChutePlus.spec @@ -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