sudo: purge /etc/sudoers, check for /etc/sudoers.d before rmdir.
This commit is contained in:
parent
ca8369eada
commit
44f85a8a7f
|
@ -4,6 +4,9 @@
|
|||
#
|
||||
case "${ACTION}" in
|
||||
post)
|
||||
rmdir etc/sudoers.d 2>/dev/null
|
||||
[ -d etc/sudoers.d ] && rmdir etc/sudoers.d 2>/dev/null
|
||||
;;
|
||||
purge)
|
||||
[ -f etc/sudoers ] && rm -f etc/sudoers
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# Template build file for 'sudo'.
|
||||
pkgname=sudo
|
||||
version=1.8.1p2
|
||||
revision=1
|
||||
distfiles="http://www.courtesan.com/sudo/dist/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args="--with-ignore-dot -with-all-insults --with-env-editor
|
||||
|
|
Loading…
Reference in New Issue