From: Mikhail Gusarov Date: Sun, 23 Feb 2014 09:57:41 +0000 (+0100) Subject: Add postrm to remove log/lib files on purge X-Git-Tag: 0.6.9~10^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f04bbaa0d52e5dc7e7760a1dfdd3dbf0ddaaccb2;p=thirdparty%2Frspamd.git Add postrm to remove log/lib files on purge --- diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000000..f4c003cf84 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,16 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +case "$1" in + purge) + rm -rf /var/lib/rspamd + rm -rf /var/log/rspamd + exit 0;; + remove|upgrade|disappear|failed-upgrade|abort-*) + exit 0;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1;; +esac