#!/bin/sh # preinst script for amavisd-cn # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package if [ "$1" = install -o "$1" = upgrade ]; then if [ -f /etc/init.d/amavisd-cn ]; then rm -f /etc/init.d/amavisd-cn fi if [ -L /etc/init.d/amavis ]; then rm -f /etc/init.d/amavis fi if [ -f /etc/init.d/amavis.amavisd-new ]; then dpkg-divert --quiet --package amavisd-cn --remove --rename \ --divert /etc/init.d/amavis.amavisd-new /etc/init.d/amavis || true update-rc.d amavis defaults 19 21 >/dev/null || true fi fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0