debian/masqmail-debian

view preinst @ 51:845b243eb46f

removed -e from shebang and put it in separate line this removes the pedantic lintian info ``maintainer-script-without-set-e''. Refer to Debian Policy Manual section 10.4 (Scripts) for details.
author meillo@marmaro.de
date Fri, 25 Jun 2010 11:49:28 +0200
parents 5ef519035828
children
line source
1 #!/bin/sh
2 set -e
4 ##$DEBIAN_SCRIPT_DEBUG || set -v -x
6 if [ "$1" = "upgrade" ] ; then
7 if dpkg --compare-versions "$2" lt "0.1.6-1" ; then
9 # move config file to new location
10 if [ -e /etc/masqmail.conf ]; then
11 if [ ! -d /etc/masqmail ]; then
12 mkdir /etc/masqmail
13 mv -f /etc/masqmail.conf /etc/masqmail/
14 fi
15 fi
16 fi
18 if dpkg --compare-versions "$2" le "0.2.20-1" ; then
19 [ -d /var/log/masqmail ] && chown -R mail:mail /var/log/masqmail/
20 fi
22 fi
24 #DEBHELPER#