From: Bdale Garbee Date: Wed, 1 Dec 2010 18:36:09 +0000 (-0700) Subject: add sudo.postrm and add code to flush /var/lib/sudo on purge X-Git-Tag: debian/1.7.4p4-5~3 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=1575d01044701d4f7978b4313f83d1942ead70f3;p=debian%2Fsudo add sudo.postrm and add code to flush /var/lib/sudo on purge --- diff --git a/debian/sudo-ldap.postrm b/debian/sudo-ldap.postrm index 58bb84b..54e7a46 100644 --- a/debian/sudo-ldap.postrm +++ b/debian/sudo-ldap.postrm @@ -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 index 0000000..a2dff7b --- /dev/null +++ b/debian/sudo.postrm @@ -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#