X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=debian%2Fpostinst;h=51642f22c0b1a66476972e9b518a7c1534a8ea9a;hb=ebce048d2bb94d717b46f34b02ed1720aaa8aaee;hp=4a6c1080e0efd1b0c84afb6336bf66103a083e96;hpb=607afdb16c4ac0a31b43f3039eb64fd889c544b5;p=pkg%2Ft-prot.git diff --git a/debian/postinst b/debian/postinst index 4a6c108..51642f2 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,10 +1,22 @@ #!/bin/sh -e # postinst for t-prot -if [ "$1" = 'configure' -a -e /usr/share/debconf/confmodule ]; then - if dpkg --compare-versions "$2" lt "1.47-2" ; then - . /usr/share/debconf/confmodule - db_purge - db_stop - fi +# Source debconf library. +if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi + +if [ "$1" != 'configure' ]; then + exit 0 +fi + +symlink=true +if [ -e /usr/share/debconf/confmodule ]; then + db_get t-prot/muttrc.d + symlink="$RET" +fi + +if [ "$symlink" = "true" ]; then + mkdir /etc/Muttrc.d || true + cd /etc/Muttrc.d && ln -s ../Muttrc.t-prot t-prot.rc || true fi