summaryrefslogtreecommitdiff
path: root/debian/sudo.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sudo.postrm')
-rw-r--r--debian/sudo.postrm23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/sudo.postrm b/debian/sudo.postrm
new file mode 100644
index 0000000..ab1425a
--- /dev/null
+++ b/debian/sudo.postrm
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+
+case "$1" in
+ purge)
+ rm -rf /var/lib/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#