From 925948ed8340a5be4311d08135b38963db1f290b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 Jan 2011 15:00:52 +0100 Subject: [PATCH] sudo: added REMOVE script for removing /etc/sudoers.d if empty. --- srcpkgs/sudo/REMOVE | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 srcpkgs/sudo/REMOVE diff --git a/srcpkgs/sudo/REMOVE b/srcpkgs/sudo/REMOVE new file mode 100644 index 00000000000..822a633a0cc --- /dev/null +++ b/srcpkgs/sudo/REMOVE @@ -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