[debian-edu-commits] debian-edu/ 01/01: debian/debian-edu-config.postrm: Remove directory /var/lib/dovecot (which we create in d-e-c.postinst), if empty (Closes: #722937).

Mike Gabriel sunweaver at debian.org
Wed Oct 14 13:25:17 UTC 2015


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

sunweaver pushed a commit to branch master
in repository debian-edu-config.

commit 40def3efa174ea7a6a0d8a736e0d9592e0eef999
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Oct 14 15:24:39 2015 +0200

    debian/debian-edu-config.postrm: Remove directory /var/lib/dovecot (which we create in d-e-c.postinst), if empty (Closes: #722937).
---
 debian/changelog                | 3 +++
 debian/debian-edu-config.postrm | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 24c27ac..ad6da06 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,6 +42,9 @@ debian-edu-config (1.819) UNRELEASED; urgency=low
   * Following Holger Levsen's suggestion about dropping
     share/debian-edu-config/tools/qemu-test-network. (Closes: #766192).
   * Remove qemu-test-network from Makefile. Fix FTBFS of d-e-c.
+  * debian/debian-edu-config.postrm:
+    + Remove directory /var/lib/dovecot (which we create in d-e-c.postinst),
+      if empty (Closes: #722937).
 
  -- Petter Reinholdtsen <pere at debian.org>  Sat, 16 May 2015 23:12:06 +0200
 
diff --git a/debian/debian-edu-config.postrm b/debian/debian-edu-config.postrm
index 97b5a41..08e4479 100644
--- a/debian/debian-edu-config.postrm
+++ b/debian/debian-edu-config.postrm
@@ -27,6 +27,10 @@ case "$1" in
 	if [ ! -s /var/lib/dovecot/auth_success ] ; then
 	    rm -f /var/lib/dovecot/auth_success
 	fi
+
+	# remove /var/lib/dovecot directory (this does not
+	# interfere with dovecot-core, if installed)
+	rmdir --ignore-fail-on-non-empty /var/lib/dovecot
 esac
 
 #DEBHELPER#

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



More information about the debian-edu-commits mailing list