debian/masqmail-debian
annotate 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 |
rev | line source |
---|---|
meillo@51 | 1 #!/bin/sh |
meillo@51 | 2 set -e |
meillo@0 | 3 |
meillo@0 | 4 ##$DEBIAN_SCRIPT_DEBUG || set -v -x |
meillo@0 | 5 |
meillo@0 | 6 if [ "$1" = "upgrade" ] ; then |
meillo@0 | 7 if dpkg --compare-versions "$2" lt "0.1.6-1" ; then |
meillo@0 | 8 |
meillo@0 | 9 # move config file to new location |
meillo@0 | 10 if [ -e /etc/masqmail.conf ]; then |
meillo@0 | 11 if [ ! -d /etc/masqmail ]; then |
meillo@0 | 12 mkdir /etc/masqmail |
meillo@0 | 13 mv -f /etc/masqmail.conf /etc/masqmail/ |
meillo@0 | 14 fi |
meillo@0 | 15 fi |
meillo@0 | 16 fi |
meillo@0 | 17 |
meillo@0 | 18 if dpkg --compare-versions "$2" le "0.2.20-1" ; then |
meillo@0 | 19 [ -d /var/log/masqmail ] && chown -R mail:mail /var/log/masqmail/ |
meillo@0 | 20 fi |
meillo@0 | 21 |
meillo@0 | 22 fi |
meillo@0 | 23 |
meillo@0 | 24 #DEBHELPER# |