summaryrefslogtreecommitdiffstats
path: root/abs/core/dcron/dcron.install
blob: ad5442add1bcd5828cad2c6e0d3a582bb022353a (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/bin/run-cron /etc/cron.tenminutes" >> /var/spool/cron/root
  fi
  if [ ! -e /etc/cron.tenminutes ]
  then
	  mkdir -p /etc/cron.tenminutes
  fi
  sed -i 's|/usr/sbin|/usr/bin|g' /var/spool/cron/root
}

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