SPECS: vixie-cron.spec - merge triggers
glen
glen at pld-linux.org
Wed Feb 6 21:00:11 CET 2008
Author: glen Date: Wed Feb 6 20:00:11 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- merge triggers
---- Files affected:
SPECS:
vixie-cron.spec (1.132 -> 1.133)
---- Diffs:
================================================================
Index: SPECS/vixie-cron.spec
diff -u SPECS/vixie-cron.spec:1.132 SPECS/vixie-cron.spec:1.133
--- SPECS/vixie-cron.spec:1.132 Wed Feb 6 20:57:02 2008
+++ SPECS/vixie-cron.spec Wed Feb 6 21:00:05 2008
@@ -278,16 +278,14 @@
fi
%triggerpostun -- vixie-cron < 3.0.1-86
-for i in `/bin/ls /var/spool/cron 2>/dev/null`
-do
- chown ${i} /var/spool/cron/${i} 2>/dev/null || :
+for user in $(/bin/ls /var/spool/cron 2>/dev/null); do
+ chown $user /var/spool/cron/$user 2>/dev/null || :
done
/bin/chmod 660 /var/log/cron
/bin/chgrp crontab /var/log/cron
/bin/chmod 640 /etc/cron/cron.*
/bin/chgrp crontab /etc/cron/cron.*
-%triggerpostun -- vixie-cron < 3.0.1-74
if [ -f /etc/cron.d/cron.allow.rpmsave ]; then
mv -f /etc/cron.d/cron.allow.rpmsave /etc/cron/cron.allow
fi
@@ -300,8 +298,6 @@
if [ -f /etc/cron.d/cron.deny ]; then
mv -f /etc/cron.d/cron.deny /etc/cron/cron.deny
fi
-
-%triggerpostun -- vixie-cron < 3.0.1-71
if [ -f /etc/cron.allow ]; then
mv -f /etc/cron.allow /etc/cron/cron.allow
fi
@@ -313,10 +309,8 @@
/sbin/chkconfig --del crond
/sbin/chkconfig --add crond
-%triggerpostun -- hc-cron < 0.14-11.2
-for i in `/bin/ls /var/spool/cron 2>/dev/null`
-do
- chown ${i} /var/spool/cron/${i} 2>/dev/null || :
+for user in $(/bin/ls /var/spool/cron 2>/dev/null); do
+ chown $user /var/spool/cron/$user 2>/dev/null || :
done
/bin/chmod 660 /var/log/cron
/bin/chgrp crontab /var/log/cron
@@ -354,6 +348,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.133 2008-02-06 20:00:05 glen
+- merge triggers
+
Revision 1.132 2008-02-06 19:57:02 glen
- never use '<=' in trigger comparision
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/vixie-cron.spec?r1=1.132&r2=1.133&f=u
More information about the pld-cvs-commit
mailing list