summaryrefslogtreecommitdiff
path: root/debian/sendmail.prerm
blob: 840eabea85469b235ad599d6b3697b49084e85d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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