view preinst @ 58:ceba90d59cf0

updated changelog
author meillo@marmaro.de
date Mon, 19 Jul 2010 12:27:05 +0200
parents 845b243eb46f
children
line wrap: on
line source

#!/bin/sh
set -e

##$DEBIAN_SCRIPT_DEBUG || set -v -x 

if [ "$1" = "upgrade" ] ; then
  if dpkg --compare-versions "$2" lt "0.1.6-1" ; then

    # move config file to new location
    if [ -e /etc/masqmail.conf ]; then
	if [ ! -d /etc/masqmail ]; then
	    mkdir /etc/masqmail
	    mv -f /etc/masqmail.conf /etc/masqmail/
	fi
    fi
  fi

  if dpkg --compare-versions "$2" le "0.2.20-1" ; then
    [ -d /var/log/masqmail ] && chown -R mail:mail /var/log/masqmail/
  fi

fi

#DEBHELPER#