sudo: purge /etc/sudoers, check for /etc/sudoers.d before rmdir.
This commit is contained in:
parent
ca8369eada
commit
44f85a8a7f
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,9 @@
|
||||||
#
|
#
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
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
|
esac
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Template build file for 'sudo'.
|
# Template build file for 'sudo'.
|
||||||
pkgname=sudo
|
pkgname=sudo
|
||||||
version=1.8.1p2
|
version=1.8.1p2
|
||||||
|
revision=1
|
||||||
distfiles="http://www.courtesan.com/sudo/dist/$pkgname-$version.tar.gz"
|
distfiles="http://www.courtesan.com/sudo/dist/$pkgname-$version.tar.gz"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--with-ignore-dot -with-all-insults --with-env-editor
|
configure_args="--with-ignore-dot -with-all-insults --with-env-editor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue