masqmail-0.2
diff debian/preinst @ 0:08114f7dcc23
this is masqmail-0.2.21 from oliver kurth
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 17:05:23 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/debian/preinst Fri Sep 26 17:05:23 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#