summaryrefslogtreecommitdiff
path: root/debian/sendmail.postrm
blob: 64115047763ced748844f13684890c18e8a859f2 (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
#!/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
    ;;

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

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

#DEBHELPER#