]> git.deb.at Git - pkg/t-prot.git/blob - debian/postrm
Merge branch 'upstream'
[pkg/t-prot.git] / debian / postrm
1 #!/bin/sh -e
2 # postrm for t-prot
3
4 action=$1
5
6 case "$action" in
7     remove)
8         if [ ! -e /etc/Muttrc.d/t-prot.rc.removed ]; then
9                 # only disable the configuration
10                 mv /etc/Muttrc.d/t-prot.rc /etc/Muttrc.d/t-prot.rc.removed || true
11         fi
12         ;;
13     purge)
14         rm /etc/Muttrc.d/t-prot.rc.removed || true
15         rm /etc/Muttrc.d/t-prot.rc || true
16         rmdir /etc/Muttrc.d 2> /dev/null || true
17         # remove debconf data on purge
18         if [ -e /usr/share/debconf/confmodule ]; then
19                 . /usr/share/debconf/confmodule
20                 db_purge
21         fi
22         ;;
23 esac