[Pkg-samba-maint] [samba] 03/03: Further cleanup of the dhcp hook: remove /etc/dhcp3 directory once it's empty.

Steve Langasek vorlon at moszumanska.debian.org
Tue Jan 21 04:53:30 UTC 2014


This is an automated email from the git hooks/post-receive script.

vorlon pushed a commit to branch master
in repository samba.

commit 0a3dd4f9e487f4baba3e90916c73cd8b4a674fe7
Author: Steve Langasek <vorlon at debian.org>
Date:   Tue Jan 21 02:44:28 2014 +0000

    Further cleanup of the dhcp hook: remove /etc/dhcp3 directory once it's empty.
---
 debian/samba-common.postinst | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/debian/samba-common.postinst b/debian/samba-common.postinst
index 56d7a64..e28c318 100644
--- a/debian/samba-common.postinst
+++ b/debian/samba-common.postinst
@@ -96,3 +96,13 @@ fi
 db_stop
 
 #DEBHELPER#
+
+# Clean up the now-empty dir which our conffile was previously in,
+# since it wasn't empty at the time dpkg could automatically remove it
+# for us.
+if dpkg --compare-versions "$2" lt-nl 2:4.1.4+dfsg-2~
+then
+	rmdir -p --ignore-fail-on-non-empty /etc/dhcp3/dhclient-enter-hooks.d
+fi
+
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list