2011-01-20 15:00:52 +01:00
|
|
|
#
|
|
|
|
# This script fragment removes etc/sudoers.d at post remove time
|
|
|
|
# and only if it's empty.
|
|
|
|
#
|
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
2011-07-01 09:04:06 +02:00
|
|
|
[ -d etc/sudoers.d ] && rmdir etc/sudoers.d 2>/dev/null
|
|
|
|
;;
|
|
|
|
purge)
|
|
|
|
[ -f etc/sudoers ] && rm -f etc/sudoers
|
2011-08-18 16:04:00 +02:00
|
|
|
[ -d var/db/sudo ] && rm -rf var/db/sudo
|
2011-01-20 15:00:52 +01:00
|
|
|
;;
|
|
|
|
esac
|