fix upgrade issue in postrm script, and rename it to <package>.postrm to match...

fix upgrade issue in postrm script, and rename it to <package>.postrm to match other debian control files

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1428 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c8e482d5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment