diff options
Diffstat (limited to 'debian/sendmail.prerm')
-rw-r--r-- | debian/sendmail.prerm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/sendmail.prerm b/debian/sendmail.prerm new file mode 100644 index 0000000..840eabe --- /dev/null +++ b/debian/sendmail.prerm @@ -0,0 +1,36 @@ +#!/bin/sh -e +set -e + +case "$1" in + remove) + /etc/init.d/sendmail stop + ;; + + upgrade) + ;; + + failed-upgrade) + ;; + + deconfigure) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; + esac + +# The @DEBHELPER@ stuff causes problems with upgrades because of the +# length of time that sendmail is stopped... + +# Automatically added by dh_installdocs +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/sendmail ]; then + rm -f /usr/doc/sendmail +fi +# End automatically added section +# Automatically added by dh_installinit +#/etc/init.d/sendmail stop +# End automatically added section +#@DEBHELPER# +exit 0 |