aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2014-02-23 10:57:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-02-24 13:17:48 +0000
commit5358647926713c582f531fe3b9e5650d95ed4c42 (patch)
treed63a4f942d246b55cb56ceb5c1d7f4f8d0d4b529
parent02953e5c943e4ba6bf212443699c412cdfb7f7ea (diff)
downloadrspamd-5358647926713c582f531fe3b9e5650d95ed4c42.tar.gz
rspamd-5358647926713c582f531fe3b9e5650d95ed4c42.zip
Add postrm to remove log/lib files on purge
-rw-r--r--debian/postrm16
1 files changed, 16 insertions, 0 deletions
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