projects
/
debian
/
sudo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add an entry in nsswitch.conf and remove on purge for the sudo-ldap package
[debian/sudo]
/
debian
/
sudo-ldap.postrm
diff --git
a/debian/sudo-ldap.postrm
b/debian/sudo-ldap.postrm
index 30fb1e89436f23c5675cb552d8c1551291af7eea..15c155bb3190739708b2dec2f4d95b448c2bbc35 100644
(file)
--- a/
debian/sudo-ldap.postrm
+++ b/
debian/sudo-ldap.postrm
@@
-22,4
+22,10
@@
case "$1" in
;;
esac
+# modify nsswitch.conf
+NSSWITCH="/etc/nsswitch.conf"
+if [ -w $NSSWITCH ] ; then
+ sed -i /^sudoers:/d $NSSWITCH
+fi
+
#DEBHELPER#