debian/masqmail-debian

diff preinst @ 0:5ef519035828

debian directory of masqmail-0.2.21-4
author meillo@marmaro.de
date Fri, 26 Sep 2008 21:25:48 +0200
parents
children 845b243eb46f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/preinst	Fri Sep 26 21:25:48 2008 +0200
     1.3 @@ -0,0 +1,23 @@
     1.4 +#!/bin/sh -e
     1.5 +
     1.6 +##$DEBIAN_SCRIPT_DEBUG || set -v -x 
     1.7 +
     1.8 +if [ "$1" = "upgrade" ] ; then
     1.9 +  if dpkg --compare-versions "$2" lt "0.1.6-1" ; then
    1.10 +
    1.11 +    # move config file to new location
    1.12 +    if [ -e /etc/masqmail.conf ]; then
    1.13 +	if [ ! -d /etc/masqmail ]; then
    1.14 +	    mkdir /etc/masqmail
    1.15 +	    mv -f /etc/masqmail.conf /etc/masqmail/
    1.16 +	fi
    1.17 +    fi
    1.18 +  fi
    1.19 +
    1.20 +  if dpkg --compare-versions "$2" le "0.2.20-1" ; then
    1.21 +    [ -d /var/log/masqmail ] && chown -R mail:mail /var/log/masqmail/
    1.22 +  fi
    1.23 +
    1.24 +fi
    1.25 +
    1.26 +#DEBHELPER#