summaryrefslogtreecommitdiffstats
path: root/debian/sudo.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:52:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:52:13 +0000
commitaf28b3fc7bdc38f942b8b641e7a95223443e0eab (patch)
tree9134309de0bda5a19b41aec8e1ef27272f79d958 /debian/sudo.postrm
parentAdding upstream version 1.9.5p2. (diff)
downloadsudo-af28b3fc7bdc38f942b8b641e7a95223443e0eab.tar.xz
sudo-af28b3fc7bdc38f942b8b641e7a95223443e0eab.zip
Adding debian version 1.9.5p2-3+deb11u1.debian/1.9.5p2-3+deb11u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/sudo.postrm')
-rw-r--r--debian/sudo.postrm24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/sudo.postrm b/debian/sudo.postrm
new file mode 100644
index 0000000..f683170
--- /dev/null
+++ b/debian/sudo.postrm
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+case "$1" in
+ purge)
+ rm -rf /var/lib/sudo
+ rm -rf /run/sudo
+ ;;
+
+ remove|upgrade|deconfigure)
+ ;;
+
+ abort-upgrade|failed-upgrade)
+ if [ -e "/etc/sudoers.pre-conffile" ]; then
+ mv /etc/sudoers.pre-conffile /etc/sudoers
+ fi
+ ;;
+
+ *)
+ echo "unknown argument --> $1" >&2
+ exit 0
+ ;;
+esac
+
+#DEBHELPER#