]> git.gag.com Git - debian/sudo/commitdiff
add sudo.postrm and add code to flush /var/lib/sudo on purge
authorBdale Garbee <bdale@gag.com>
Wed, 1 Dec 2010 18:36:09 +0000 (11:36 -0700)
committerBdale Garbee <bdale@gag.com>
Wed, 1 Dec 2010 18:36:09 +0000 (11:36 -0700)
debian/sudo-ldap.postrm
debian/sudo.postrm [new file with mode: 0644]

index 58bb84b57997e2b961c49cad1f59ec8b38fd8e8b..54e7a46da9a41b566e0bfd8c016d0171d456c24c 100644 (file)
@@ -3,6 +3,7 @@
 case "$1" in
   purge)
        rm -f /etc/sudo-ldap.conf
+       rm -rf /var/lib/sudo
   ;;
 
   remove|upgrade|deconfigure)
diff --git a/debian/sudo.postrm b/debian/sudo.postrm
new file mode 100644 (file)
index 0000000..a2dff7b
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+case "$1" in
+  purge)
+       rm -rf /var/lib/sudo
+  ;;
+
+  remove|upgrade|deconfigure)
+  ;;
+
+  failed-upgrade)
+  ;;
+
+  *)
+        echo "unknown argument --> $1" >&2
+        exit 0
+  ;;
+esac
+
+#DEBHELPER#