From f04bbaa0d52e5dc7e7760a1dfdd3dbf0ddaaccb2 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Sun, 23 Feb 2014 10:57:41 +0100 Subject: [PATCH] Add postrm to remove log/lib files on purge --- debian/postrm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 debian/postrm diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 000000000..f4c003cf8 --- /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 -- 2.39.5