projects
/
debian
/
sudo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add sudo.postrm and add code to flush /var/lib/sudo on purge
[debian/sudo]
/
debian
/
sudo-ldap.postrm
diff --git
a/debian/sudo-ldap.postrm
b/debian/sudo-ldap.postrm
index af99cb6605f675d43f299dfd68f6ca21a6b2b607..54e7a46da9a41b566e0bfd8c016d0171d456c24c 100644
(file)
--- a/
debian/sudo-ldap.postrm
+++ b/
debian/sudo-ldap.postrm
@@
-1,20
+1,21
@@
-#! /bin/sh
-
-set -e
+#!/bin/sh -e
case "$1" in
case "$1" in
- purge)
- ;;
+ purge)
+ rm -f /etc/sudo-ldap.conf
+ rm -rf /var/lib/sudo
+ ;;
-
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear
)
-
;;
+
remove|upgrade|deconfigure
)
+ ;;
- *)
- echo "postrm called with unknown argument \`$1'" >&2
- exit 1
+ failed-upgrade)
+ ;;
+ *)
+ echo "unknown argument --> $1" >&2
+ exit 0
+ ;;
esac
#DEBHELPER#
esac
#DEBHELPER#
-
-exit 0