X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Fpostinst;h=c46314fc4c551729f3ab0747a14227c4a260040b;hb=HEAD;hp=b60b3dd39ca83665018cf3c6420389afff522be4;hpb=19a42c4a502dbe5cd296dbcf162ac93779c8dab5;p=pkg%2Ft-prot.git diff --git a/debian/postinst b/debian/postinst index b60b3dd..c46314f 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,7 +1,9 @@ -#!/bin/sh -e +#!/bin/sh # postinst for t-prot -# (c) 2002-2007 by Gerfried Fuchs -# Licenced in the same way as t-prot itself +# Copyright 2002-2016 by Rhonda D'Vine +# Licenced under WTFPLv2 + +set -e # Source debconf library. if [ -e /usr/share/debconf/confmodule ]; then @@ -19,11 +21,6 @@ if [ "$action" != 'configure' ] && [ "$action" != 'reconfigure' ]; then exit 0 fi -# change existing symlink from ../Muttrc.t-prot to ../t-prot/Mutrc -if [ "$version" = "2.1-1" ] && [ -L /etc/Muttrc.d/t-prot.rc ]; then - cd /etc/Muttrc.d && ln -sf ../t-prot/Muttrc t-prot.rc || true -fi - # if we got reinstalled after a remove, enable the config snippet again if [ "$action" = 'configure' ] && [ -e /etc/Muttrc.d/t-prot.rc.removed ] && [ ! -e /etc/Muttrc.d/t-prot.rc ]; then mv /etc/Muttrc.d/t-prot.rc.removed /etc/Muttrc.d/t-prot.rc || true @@ -50,3 +47,5 @@ if [ "x$version" = "x" ] || [ "$action" = "reconfigure" ]; then ;; esac fi + +#DEBHELPER#