From: ssm Date: Wed, 16 May 2007 10:53:30 +0000 (+0000) Subject: fix upgrade issue in postrm script, and rename it to .postrm to match other... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3cd4fdd2c3796801d214ccdd179dd16df2581e3;p=varnish fix upgrade issue in postrm script, and rename it to .postrm to match other debian control files git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1428 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/debian/postrm b/varnish-cache/debian/varnish.postrm similarity index 82% rename from varnish-cache/debian/postrm rename to varnish-cache/debian/varnish.postrm index 66efee07..d0b0b200 100644 --- a/varnish-cache/debian/postrm +++ b/varnish-cache/debian/varnish.postrm @@ -3,9 +3,12 @@ set -e case "$1" in - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + upgrade) + ;; - if test -e /var/log/varnish && ! [ "$1" = upgrade ]; then + remove|failed-upgrade|abort-install|abort-upgrade|disappear) + + if test -e /var/log/varnish ; then rm -rf /var/log/varnish 2>&1 > /dev/null || exit 78