debian/masqmail-debian
view preinst @ 7:a5b9d7e998cf
Added tag 0.2.21-5 for changeset 11752c18c57d
author | meillo@marmaro.de |
---|---|
date | Wed, 05 Nov 2008 11:42:52 +0100 |
parents | |
children | 845b243eb46f |
line source
1 #!/bin/sh -e
3 ##$DEBIAN_SCRIPT_DEBUG || set -v -x
5 if [ "$1" = "upgrade" ] ; then
6 if dpkg --compare-versions "$2" lt "0.1.6-1" ; then
8 # move config file to new location
9 if [ -e /etc/masqmail.conf ]; then
10 if [ ! -d /etc/masqmail ]; then
11 mkdir /etc/masqmail
12 mv -f /etc/masqmail.conf /etc/masqmail/
13 fi
14 fi
15 fi
17 if dpkg --compare-versions "$2" le "0.2.20-1" ; then
18 [ -d /var/log/masqmail ] && chown -R mail:mail /var/log/masqmail/
19 fi
21 fi
23 #DEBHELPER#