SPECS: PowerChutePlus.spec - user/groupmod in pre
baggins
baggins at pld-linux.org
Sun Jan 25 23:42:23 CET 2009
Author: baggins Date: Sun Jan 25 22:42:23 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- user/groupmod in pre
---- Files affected:
SPECS:
PowerChutePlus.spec (1.27 -> 1.28)
---- Diffs:
================================================================
Index: SPECS/PowerChutePlus.spec
diff -u SPECS/PowerChutePlus.spec:1.27 SPECS/PowerChutePlus.spec:1.28
--- SPECS/PowerChutePlus.spec:1.27 Sun Jan 25 23:24:40 2009
+++ SPECS/PowerChutePlus.spec Sun Jan 25 23:42:17 2009
@@ -25,7 +25,9 @@
Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/groupmod
Requires(pre): /usr/sbin/useradd
+Requires(pre): /usr/sbin/usermod
Requires: rc-scripts
Provides: group(pwrchute)
Provides: user(pwrchute)
@@ -101,6 +103,12 @@
rm -rf $RPM_BUILD_ROOT
%pre
+# move to trigger?
+if [ -n "`/usr/bin/getgid pwrchute`" ] && [ "`/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
+fi
%groupadd -g 233 pwrchute
%useradd -u 233 -g 233 -d /usr/share/empty -s /bin/false -c "PowerChute Plus" pwrchute
@@ -164,6 +172,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.28 2009/01/25 22:42:17 baggins
+- user/groupmod in pre
+
Revision 1.27 2009/01/25 22:24:40 baggins
- rel 2
- renumbered pwrchute uid/gid to 233 (this program is a museal exhibit,
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/PowerChutePlus.spec?r1=1.27&r2=1.28&f=u
More information about the pld-cvs-commit
mailing list