#!/bin/sh -e case "$1" in configure) llxcfg-init-scripts enable lliurex-sync-server 901 TEMPFILE="$(mktemp -m 644)" rc=0 crontab -u root -l || rc=1 [ $rc -eq 1 ] || crontab -u root -l > "$TEMPFILE" cat /usr/share/lliurex-sync-server/lliurex-sync-watchdog.crontab >> "$TEMPFILE" crontab -u root "$TEMPFILE" ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0