debian/masqmail-debian

annotate preinst @ 35:95c23c09c872

moved homepage field in source package part
author meillo@marmaro.de
date Thu, 08 Apr 2010 10:42:21 +0200
parents
children 845b243eb46f
rev   line source
meillo@0 1 #!/bin/sh -e
meillo@0 2
meillo@0 3 ##$DEBIAN_SCRIPT_DEBUG || set -v -x
meillo@0 4
meillo@0 5 if [ "$1" = "upgrade" ] ; then
meillo@0 6 if dpkg --compare-versions "$2" lt "0.1.6-1" ; then
meillo@0 7
meillo@0 8 # move config file to new location
meillo@0 9 if [ -e /etc/masqmail.conf ]; then
meillo@0 10 if [ ! -d /etc/masqmail ]; then
meillo@0 11 mkdir /etc/masqmail
meillo@0 12 mv -f /etc/masqmail.conf /etc/masqmail/
meillo@0 13 fi
meillo@0 14 fi
meillo@0 15 fi
meillo@0 16
meillo@0 17 if dpkg --compare-versions "$2" le "0.2.20-1" ; then
meillo@0 18 [ -d /var/log/masqmail ] && chown -R mail:mail /var/log/masqmail/
meillo@0 19 fi
meillo@0 20
meillo@0 21 fi
meillo@0 22
meillo@0 23 #DEBHELPER#