22 lines
325 B
Bash
Executable File
22 lines
325 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case $1 in
|
|
preinst)
|
|
exit 0
|
|
;;
|
|
postinst)
|
|
[ -f "/run/cron.pid" ] && /etc/init.d/cron restart
|
|
[ -f "/etc/crontab" ] || cp /usr/share/cron/crontab /etc/crontab
|
|
exit 0
|
|
;;
|
|
prerm)
|
|
[ -f "/run/cron.pid" ] && /etc/init.d/cron stop
|
|
exit 0
|
|
;;
|
|
postrm)
|
|
exit 0
|
|
;;
|
|
esac
|