summaryrefslogtreecommitdiff
path: root/debian/postrm
blob: 2ebac2eef077b33d711b0cdc9a535a8e48503c49 (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
#!/bin/sh -e
#
# Debian package postrm
# Version 1.2
#
# Robert Leslie <rob@mars.org>

case "$1" in
    remove)
    ;;

    upgrade)
    ;;

    purge)
	rm -rf /var/spool/mqueue
	rm -f /etc/sendmail.cf /etc/aliases.{db,dir,pag}
	rm -f /etc/mail/sendmail.{cf,cw,ct,mc}{,.old}
	rmdir /etc/mail 2>/dev/null || true
	update-rc.d sendmail remove >/dev/null
	if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
	    suidunregister -s sendmail /usr/sbin/sendmail
	fi
    ;;

    failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

    *)
	echo "postrm called with unknown argument \`$1'" >&2
	exit 0
    ;;
esac