Fix check for MariaDB upgrade manual switch off
authorJiri Stransky <jistr@redhat.com>
Wed, 24 Aug 2016 11:21:59 +0000 (13:21 +0200)
committerJiri Stransky <jistr@redhat.com>
Wed, 24 Aug 2016 11:21:59 +0000 (13:21 +0200)
The MySqlMajorUpgrade parameter has validation on it allowing only
values yes/no/auto, however in the script we checked for '0' instead of
'no', which means the only effective values were yes/auto. This is now
fixed to allow switching the migration off.

Change-Id: I5d64734894c6bfd9003ad643f3747e34e62465cc
Closes-Bug: #1616429

extraconfig/tasks/major_upgrade_controller_pacemaker_1.sh

index 36d8544..d67d5a1 100755 (executable)
@@ -50,7 +50,7 @@ if [ "$mariadb_do_major_upgrade" = "auto" ]; then
         DO_MYSQL_UPGRADE=0
     fi
     echo "mysql upgrade required: $DO_MYSQL_UPGRADE"
-elif [ "$mariadb_do_major_upgrade" = 0 ]; then
+elif [ "$mariadb_do_major_upgrade" = "no" ]; then
     DO_MYSQL_UPGRADE=0
 else
     DO_MYSQL_UPGRADE=1