mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-25 23:12:57 +02:00
sudo: added REMOVE script for removing /etc/sudoers.d if empty.
This commit is contained in:
parent
40dfa52b63
commit
925948ed83
1 changed files with 9 additions and 0 deletions
9
srcpkgs/sudo/REMOVE
Normal file
9
srcpkgs/sudo/REMOVE
Normal file
|
@ -0,0 +1,9 @@
|
|||
#
|
||||
# This script fragment removes etc/sudoers.d at post remove time
|
||||
# and only if it's empty.
|
||||
#
|
||||
case "${ACTION}" in
|
||||
post)
|
||||
rmdir etc/sudoers.d 2>/dev/null
|
||||
;;
|
||||
esac
|
Loading…
Add table
Reference in a new issue