]> git.gag.com Git - debian/sudo/blob - debian/sudo-ldap.postrm
try differently
[debian/sudo] / debian / sudo-ldap.postrm
1 #!/bin/sh -e
2
3 case "$1" in
4   purge)
5         rm -f /etc/sudo-ldap.conf
6         rm -rf /var/lib/sudo
7   ;;
8
9   remove|upgrade|deconfigure)
10   ;;
11
12   abort-upgrade|failed-upgrade)
13     if [ -e "/etc/sudoers.pre-conffile" ]; then
14         mv /etc/sudoers.pre-conffile /etc/sudoers
15     fi
16   ;;
17
18
19   *)
20         echo "unknown argument --> $1" >&2
21         exit 0
22   ;;
23 esac
24
25 # remove sudoers entries, if any, from nsswitch.conf
26 if [ -w /etc/nsswitch.conf ] ; then
27         sed -i /^sudoers:/d /etc/nsswitch.conf
28 fi
29
30 #DEBHELPER#