SPECS: PowerChutePlus.spec - should groupmod if NOT equal, I think
qboosh
qboosh at pld-linux.org
Tue Jan 27 22:57:50 CET 2009
Author: qboosh Date: Tue Jan 27 21:57:50 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- should groupmod if NOT equal, I think
---- Files affected:
SPECS:
PowerChutePlus.spec (1.28 -> 1.29)
---- Diffs:
================================================================
Index: SPECS/PowerChutePlus.spec
diff -u SPECS/PowerChutePlus.spec:1.28 SPECS/PowerChutePlus.spec:1.29
--- SPECS/PowerChutePlus.spec:1.28 Sun Jan 25 23:42:17 2009
+++ SPECS/PowerChutePlus.spec Tue Jan 27 22:57:44 2009
@@ -104,7 +104,7 @@
%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
@@ -172,6 +172,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.29 2009/01/27 21:57:44 qboosh
+- should groupmod if NOT equal, I think
+
Revision 1.28 2009/01/25 22:42:17 baggins
- user/groupmod in pre
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/PowerChutePlus.spec?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list