summaryrefslogtreecommitdiffstats
path: root/debian/redis-tools.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/redis-tools.postrm')
-rw-r--r--debian/redis-tools.postrm13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/redis-tools.postrm b/debian/redis-tools.postrm
new file mode 100644
index 0000000..5d1f6e1
--- /dev/null
+++ b/debian/redis-tools.postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -eu
+
+if [ "${1}" = "purge" ]
+then
+ userdel redis || true
+ rm -rf /var/lib/redis /var/log/redis /etc/redis
+fi
+
+#DEBHELPER#
+
+exit 0