projects
/
debian
/
sudo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
patch apparently no longer needed
[debian/sudo]
/
debian
/
sudo-ldap.postrm
diff --git
a/debian/sudo-ldap.postrm
b/debian/sudo-ldap.postrm
index af99cb6605f675d43f299dfd68f6ca21a6b2b607..246f99dddf93905ace025ee07840e356d63756de 100644
(file)
--- a/
debian/sudo-ldap.postrm
+++ b/
debian/sudo-ldap.postrm
@@
-1,20
+1,30
@@
-#! /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|deconfigure)
+ ;;
- remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- ;;
+ abort-upgrade|failed-upgrade)
+ if [ -e "/etc/sudoers.pre-conffile" ]; then
+ mv /etc/sudoers.pre-conffile /etc/sudoers
+ fi
+ ;;
- *)
- echo "postrm called with unknown argument \`$1'" >&2
- exit 1
+ *)
+ echo "unknown argument --> $1" >&2
+ exit 0
+ ;;
esac
esac
-#DEBHELPER#
+# remove sudoers entries, if any, from nsswitch.conf
+if [ -w /etc/nsswitch.conf ] ; then
+ sed -i /^sudoers:/d /etc/nsswitch.conf
+fi
-exit 0
+#DEBHELPER#