]> err.no Git - varnish/commitdiff
fix upgrade issue in postrm script, and rename it to <package>.postrm to match other...
authorssm <ssm@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 May 2007 10:53:30 +0000 (10:53 +0000)
committerssm <ssm@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 May 2007 10:53:30 +0000 (10:53 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1428 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/debian/varnish.postrm [moved from varnish-cache/debian/postrm with 82% similarity]

similarity index 82%
rename from varnish-cache/debian/postrm
rename to varnish-cache/debian/varnish.postrm
index 66efee079cdcd5413e9ba855a87c619a18b3ee7c..d0b0b2004e95c7980ca696ddb8cf83dac9966a4f 100644 (file)
@@ -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