14 lines
281 B
Plaintext
14 lines
281 B
Plaintext
#
|
|
# This script fragment removes etc/sudoers.d at post remove time
|
|
# and only if it's empty.
|
|
#
|
|
case "${ACTION}" in
|
|
post)
|
|
[ -d etc/sudoers.d ] && rmdir etc/sudoers.d 2>/dev/null
|
|
;;
|
|
purge)
|
|
[ -f etc/sudoers ] && rm -f etc/sudoers
|
|
[ -d var/db/sudo ] && rm -rf var/db/sudo
|
|
;;
|
|
esac
|