]> git.llucax.com Git - software/mutt-debian.git/blob - debian/mutt.preinst
debhelper compat bumped to 7
[software/mutt-debian.git] / debian / mutt.preinst
1 #!/bin/sh
2
3 set -e
4
5 if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "1.5.19-2" ; then
6         MD5SUM=$(md5sum /etc/Muttrc.d/smime-paths.rc | cut -d ' ' -f 1)
7         if [ "$MD5SUM" = "185414b78b332a662500719a179778c5" ] ; then
8                 echo "Removing obsolete config file /etc/Muttrc.d/smime-paths.rc"
9                 rm /etc/Muttrc.d/smime-paths.rc
10         else
11                 echo "Not removing modified obsolete config file /etc/Muttrc.d/smime-paths.rc"
12         fi
13 fi
14
15 #DEBHELPER#
16
17 exit 0