[Piuparts-commits] [piuparts] 01/07: use retry_configure_pending for bacula-director-mysql

Holger Levsen holger at layer-acht.org
Mon Jun 12 11:55:08 UTC 2017


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

holger pushed a commit to branch develop
in repository piuparts.

commit 1dae13f438f46bf7fa3d9f0cb0cd84aa22fe5575
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Jun 12 12:09:41 2017 +0200

    use retry_configure_pending for bacula-director-mysql
    
    upgrading the database server requires upgrading bacula-director-mysql
    but configuration order is wrong, since the db is only recommended
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 custom-scripts/scripts/pre_distupgrade_zz_database-server | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/custom-scripts/scripts/pre_distupgrade_zz_database-server b/custom-scripts/scripts/pre_distupgrade_zz_database-server
index ab7d31a..e731a34 100755
--- a/custom-scripts/scripts/pre_distupgrade_zz_database-server
+++ b/custom-scripts/scripts/pre_distupgrade_zz_database-server
@@ -53,6 +53,17 @@ case ${PIUPARTS_OBJECTS%%=*} in
 		;;
 esac
 
+if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "stretch" ]; then
+	case ${PIUPARTS_OBJECTS%%=*} in
+		bacula-director-mysql|\
+		bacula-director-mysql-dbg)
+			# (new) transitively recommended package mariadb-server-x.y gets
+			# configured (and the server started) too late (after ourselves)
+			RETRY="retry_configure_pending"
+			;;
+	esac
+fi
+
 for pkg in $CANDIDATES
 do
 	if is_installed "$pkg"

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



More information about the Piuparts-commits mailing list