blob: 3e4f126f4b842f477e7b900730fb634cbe2d1eba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
## 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
}
# vim:set ts=2 sw=2 et:
|