From c3cd4fdd2c3796801d214ccdd179dd16df2581e3 Mon Sep 17 00:00:00 2001 From: ssm Date: Wed, 16 May 2007 10:53:30 +0000 Subject: [PATCH] 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 --- varnish-cache/debian/{postrm => varnish.postrm} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename varnish-cache/debian/{postrm => varnish.postrm} (82%) 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 -- 2.39.5