Commit ac13b6c5 authored by Lars Bahner's avatar Lars Bahner

Added post-remove script for debian.


git-svn-id: http://www.varnish-cache.org/svn/tags/varnish-1.0.3@1274 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a112c598
varnish (1.0.3-2) unstable; urgency=low
* Added postrm to partially solve 400384
-- Lars Bahner <bahner@debian.org> Tue, 27 Feb 2007 20:41:10 +0100
varnish (1.0.3-1) unstable; urgency=low varnish (1.0.3-1) unstable; urgency=low
* new upstream release * new upstream release
......
#! /bin/sh -e
set -e
case "$1" in
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
if test -e /var/log/varnish && ! [ "$1" = upgrade ]; then
rm -rf /var/log/varnish 2>&1 > /dev/null || exit 78
fi
if test -e /var/lib/varnish; then
rm -rf /var/lib/varnish 2>&1 > /dev/null || exit 78
fi
;;
purge)
if test -e /var/log/varnish; then
rm -rf /var/log/varnish 2>&1 > /dev/null || exit 78
fi
if test -e /var/lib/varnish; then
rm -rf /var/lib/varnish 2>&1 > /dev/null || exit 78
fi
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 64
esac
#DEBHELPER#
exit 0
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