add an entry in nsswitch.conf and remove on purge for the sudo-ldap package
[debian/sudo] / debian / sudo-ldap.postrm
index 30fb1e89436f23c5675cb552d8c1551291af7eea..15c155bb3190739708b2dec2f4d95b448c2bbc35 100644 (file)
@@ -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#