[Piuparts-commits] [piuparts] 06/10: add exception for otrs2 wheezy->jessie mysql db upgrade

Holger Levsen holger at layer-acht.org
Sun Jan 15 21:24:40 UTC 2017


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

holger pushed a commit to branch master
in repository piuparts.

commit 79ccd577b26b70c2890336668ecaf9247884fd71
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun Jan 15 18:36:33 2017 +0100

    add exception for otrs2 wheezy->jessie mysql db upgrade
    
    purge otrs2 since we cannot upgrade the mysql db automatically
    due to a storage type change (#707075)
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 custom-scripts/scripts/pre_distupgrade_exceptions | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/custom-scripts/scripts/pre_distupgrade_exceptions b/custom-scripts/scripts/pre_distupgrade_exceptions
index b91dc64..ef7a9f0 100755
--- a/custom-scripts/scripts/pre_distupgrade_exceptions
+++ b/custom-scripts/scripts/pre_distupgrade_exceptions
@@ -15,6 +15,13 @@ is_installed()
 	return 0
 }
 
+dbconfig_enable_purge()
+{
+	log_debug
+	echo "$1 $1${2+/$2}/dbconfig-remove boolean true" | debconf-set-selections
+	echo "$1 $1${2+/$2}/purge boolean true" | debconf-set-selections
+}
+
 if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "squeeze" ]; then
 
 	case ${PIUPARTS_OBJECTS%%=*} in
@@ -82,6 +89,14 @@ if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "jessie" ]; then
 			log_debug
 			dpkg --purge ekeyd-uds
 			;;
+		otrs2)
+			#707075: cannot automatically upgrade from wheezy to jessie due to mysql storage engine change
+			if is_installed mysql-server; then
+				log_debug
+				dbconfig_enable_purge otrs2
+				dpkg --purge otrs2
+			fi
+			;;
 	esac
 
 fi

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