summaryrefslogtreecommitdiffstats
path: root/debian/redis-tools.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
commit0336e3b7a97fe9ab118065eff0b25fad507a9a50 (patch)
treee49702ccec26f0ace090ed80ad22ec9a4a8975ab /debian/redis-tools.postrm
parentAdding upstream version 5:7.2.4. (diff)
downloadredis-0336e3b7a97fe9ab118065eff0b25fad507a9a50.tar.xz
redis-0336e3b7a97fe9ab118065eff0b25fad507a9a50.zip
Adding debian version 5:7.2.4-1.debian/5%7.2.4-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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