diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:53:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:53:35 +0000 |
commit | 46ec4c5ae30e9137e303a1f7187da16da6378eb4 (patch) | |
tree | 94a4a825604057e5fda94b7249d8310605fe1c62 /debian/knot.postrm | |
parent | Adding upstream version 2.7.6. (diff) | |
download | knot-debian.tar.xz knot-debian.zip |
Adding debian version 2.7.6-2.debian/2.7.6-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/knot.postrm')
-rw-r--r-- | debian/knot.postrm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/knot.postrm b/debian/knot.postrm new file mode 100644 index 0000000..76dccba --- /dev/null +++ b/debian/knot.postrm @@ -0,0 +1,18 @@ +#!/bin/sh +set -e + +if test "$1" = "purge"; then + spool=/var/lib/knot + rm -rf $spool/timers $spool/keys $spool/journal + rmdir $spool 2>/dev/null || true + + dpkg-statoverride --remove /var/lib/knot >/dev/null 2>/dev/null || true + dpkg-statoverride --remove /etc/knot/knot.conf >/dev/null 2>/dev/null || true + dpkg-statoverride --remove /etc/knot >/dev/null 2>/dev/null || true + + deluser --quiet knot > /dev/null || true +fi + +#DEBHELPER# + +exit 0 |