]> source.dussan.org Git - rspamd.git/commitdiff
Add postrm to remove log/lib files on purge
authorMikhail Gusarov <dottedmag@dottedmag.net>
Sun, 23 Feb 2014 09:57:41 +0000 (10:57 +0100)
committerMikhail Gusarov <dottedmag@dottedmag.net>
Sun, 23 Feb 2014 09:57:41 +0000 (10:57 +0100)
debian/postrm [new file with mode: 0644]

diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..f4c003c
--- /dev/null
@@ -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