summaryrefslogtreecommitdiffstats
path: root/abs/core/dcron/dcron.install
blob: fb01dc9a999aded82a18cf5abb73b12ca86a8576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## 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
  if [ ! -e /etc/cron.tenminutes ]
  then
	  mkdir -p /etc/cron.tenminutes
  fi

}

post_install() {
	post_upgrade
}
# vim:set ts=2 sw=2 et: