blob: b3e90da65c4eea0b6a2de650257661d1c93051b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
if [ "`vercmp $2 4.0`" -lt 0 ]
then
echo "Restart crond, since you're upgrading to the dcron 4.x series."
fi
grep -q cron.tenminutes /var/spool/cron/root
if [ $? = 1 ]
then
echo "0,10,20,30,40,50 * * * * /usr/sbin/run-cron /etc/cron.tenminutes" >> /var/spool/cron/root
fi
}
post_install() {
post_upgrade
}
# vim:set ts=2 sw=2 et:
|