[Pkg-samba-maint] [samba] 01/02: Remove /etc/systemd/system/samba-ad-dc.service (from postinst) on purge (Closes: #832352)

Mathieu Parent sathieu at moszumanska.debian.org
Wed Aug 31 19:10:57 UTC 2016


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

sathieu pushed a commit to branch master
in repository samba.

commit 0c13b46bcea6b1025284c432f5efcd563cf63340
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Thu Aug 25 07:02:11 2016 +0200

    Remove /etc/systemd/system/samba-ad-dc.service (from postinst) on purge (Closes: #832352)
---
 debian/changelog    | 5 +++++
 debian/samba.postrm | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 08506b1..4660c66 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,16 @@
 samba (2:4.4.5+dfsg-3) UNRELEASED; urgency=medium
 
+  [ Jelmer Vernooij ]
   * Add strict dependencies on samba-libs, because of use of private
     libraries without stable ABI across Samba binary packages.
   * Add Breaks clauses for older versions of samba-libs and samba to
     samba-vfs-modules, as some files have moved. Closes: #833614,
     #832880
 
+  [ Mathieu Parent ]
+  * Remove /etc/systemd/system/samba-ad-dc.service (from postinst) on purge.
+    Closes: #832352
+
  -- Jelmer Vernooij <jelmer at debian.org>  Tue, 02 Aug 2016 02:19:37 +0000
 
 samba (2:4.4.5+dfsg-2) unstable; urgency=medium
diff --git a/debian/samba.postrm b/debian/samba.postrm
index c66384b..274bd77 100644
--- a/debian/samba.postrm
+++ b/debian/samba.postrm
@@ -8,6 +8,11 @@ if [ "$1" = purge ]; then
 		. /usr/share/debconf/confmodule
 		db_purge
 	fi
+
+	if [ "$(readlink /etc/systemd/system/samba-ad-dc.service)" = '/dev/null' ]; then
+		# Remove masking done by postinst (#832352)
+		rm /etc/systemd/system/samba-ad-dc.service
+	fi
 fi
 
 #DEBHELPER#

-- 
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