]> git.deb.at Git - pkg/t-prot.git/blob - debian/postrm
Imported Debian patch 2.7.1-1
[pkg/t-prot.git] / debian / postrm
1 #!/bin/sh -e
2 # postrm for t-prot
3 # Copyright 2002-2009 by Gerfried Fuchs <rhonda@debian.at>
4 # Licenced BSD style
5
6 action=$1
7
8 case "$action" in
9     remove)
10         if [ ! -e /etc/Muttrc.d/t-prot.rc.removed ]; then
11                 # only disable the configuration
12                 mv /etc/Muttrc.d/t-prot.rc /etc/Muttrc.d/t-prot.rc.removed || true
13         fi
14         ;;
15     purge)
16         rm /etc/Muttrc.d/t-prot.rc.removed || true
17         rm /etc/Muttrc.d/t-prot.rc || true
18         rmdir /etc/Muttrc.d 2> /dev/null || true
19         # remove debconf data on purge
20         if [ -e /usr/share/debconf/confmodule ]; then
21                 . /usr/share/debconf/confmodule
22                 db_purge
23         fi
24         ;;
25 esac