[Pkg-samba-maint] [samba] 02/02: Disable samba init script on upgrade from wheezy to jessie
Ivo De Decker
ivodd at moszumanska.debian.org
Fri Oct 24 21:58:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
ivodd pushed a commit to branch master
in repository samba.
commit 5d1b3dfef2c3c9bbee489a5c54337f0661acc05d
Author: Ivo De Decker <ivodd at debian.org>
Date: Fri Oct 24 23:34:36 2014 +0200
Disable samba init script on upgrade from wheezy to jessie
---
debian/changelog | 3 +++
debian/samba.postinst | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 59c73b8..d378d60 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ samba (2:4.1.13+dfsg-2) UNRELEASED; urgency=medium
* Mask /etc/init.d/samba init script for systemd. This should make systemd
ignore the samba init script. Thanks to Michael Biebl for the suggestion.
Closes: #740942
+ * Disable samba init script on upgrade from wheezy to jessie.
+ Thanks again to Michael Biebl for the report.
+ Closes: #766690
-- Ivo De Decker <ivodd at debian.org> Fri, 24 Oct 2014 22:29:49 +0200
diff --git a/debian/samba.postinst b/debian/samba.postinst
index a44ac09..a7dc574 100644
--- a/debian/samba.postinst
+++ b/debian/samba.postinst
@@ -45,6 +45,12 @@ if dpkg --compare-versions "$2" lt-nl 2:4.0.12+dfsg-2~; then
fi
fi
+if dpkg --compare-versions "$2" lt-nl 2:4.1.13+dfsg-2~; then
+ # on upgrades from wheezy to jessie, the samba init script should not stay
+ # active, see #766690
+ update-rc.d samba remove
+fi
+
# add the sambashare group
if ! getent group sambashare > /dev/null 2>&1
then
--
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