]> git.deb.at Git - pkg/t-prot.git/blob - debian/postinst
Imported Debian patch 2.1-1
[pkg/t-prot.git] / debian / postinst
1 #!/bin/sh -e
2 # postinst for t-prot
3
4 # Source debconf library.
5 if [ -e /usr/share/debconf/confmodule ]; then
6         . /usr/share/debconf/confmodule
7 fi
8
9 if [ "$1" != 'configure' ]; then
10         exit 0
11 fi
12
13 symlink=true
14 if [ -e /usr/share/debconf/confmodule ]; then
15         db_get t-prot/muttrc.d
16         symlink="$RET"
17 fi
18
19 if [ "$symlink" = "true" ]; then
20         mkdir /etc/Muttrc.d || true
21         cd /etc/Muttrc.d && ln -s ../Muttrc.t-prot t-prot.rc || true
22 fi