summaryrefslogtreecommitdiffstats
path: root/distro/pkg/deb-noxdp/knot.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-12 04:45:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-12 04:45:07 +0000
commit0335817ced71e8355806ea0445aa3b105a22364c (patch)
treedffe735f2668a4728d8567feaf7ccb2d73076bac /distro/pkg/deb-noxdp/knot.postrm
parentAdding upstream version 3.3.9. (diff)
downloadknot-0335817ced71e8355806ea0445aa3b105a22364c.tar.xz
knot-0335817ced71e8355806ea0445aa3b105a22364c.zip
Adding upstream version 3.4.0.upstream/3.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--distro/pkg/deb-noxdp/knot.postrm21
1 files changed, 0 insertions, 21 deletions
diff --git a/distro/pkg/deb-noxdp/knot.postrm b/distro/pkg/deb-noxdp/knot.postrm
deleted file mode 100644
index 14b3d69..0000000
--- a/distro/pkg/deb-noxdp/knot.postrm
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-set -e
-
-if test "$1" = "purge"; then
- state_dir=/var/lib/knot
- for db_name in "catalog" "confdb" "journal" "keys" "timers"; do
- rm -rf $state_dir/$db_name >/dev/null 2>&1 || true
- done
- rmdir $state_dir >/dev/null 2>&1 || true
- [ -e $state_dir/* ] && echo "Notice: there are still data in ${state_dir}, please check."
-
- dpkg-statoverride --remove /var/lib/knot >/dev/null 2>&1 || true
- dpkg-statoverride --remove /etc/knot/knot.conf >/dev/null 2>&1 || true
- dpkg-statoverride --remove /etc/knot >/dev/null 2>&1 || true
-
- deluser --quiet knot >/dev/null 2>&1 || true
-fi
-
-#DEBHELPER#
-
-exit 0