diff --git a/installer/build/scripts/upgrade/upgrade.sh b/installer/build/scripts/upgrade/upgrade.sh index eb055627a..a87a9323b 100755 --- a/installer/build/scripts/upgrade/upgrade.sh +++ b/installer/build/scripts/upgrade/upgrade.sh @@ -67,6 +67,7 @@ VER_1_5_3="v1.5.3" VER_1_5_4="v1.5.4" VER_1_5_5="v1.5.5" VER_1_5_6="v1.5.6" +VER_1_5_7="v1.5.7" function usage { echo -e "Usage: $0 [args...] @@ -91,7 +92,7 @@ function usage { [--appliance-username value]: Username of the old appliance. (Ignored if --manual-disks is specified.) [--appliance-password value]: Password of the old appliance. (Ignored if --manual-disks is specified.) [--appliance-target value]: IP Address of the old appliance. (Ignored if --manual-disks is specified.) - [--appliance-version value]: Version of the old appliance. v1.2.1, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v1.4.2, v1.4.3, v1.4.4, v1.5.0 v1.5.1 v1.5.2 v1.5.3 v1.5.4 v1.5.5 or v1.5.6. + [--appliance-version value]: Version of the old appliance. v1.2.1, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v1.4.2, v1.4.3, v1.4.4, v1.5.0 v1.5.1 v1.5.2 v1.5.3 v1.5.4 v1.5.5 v1.5.6 or v1.5.7. [--destroy]: Destroy the old appliance after upgrade is finished. (Ignored if --manual-disks is specified.) [--manual-disks]: Skip the automated govc disk migration. @@ -241,7 +242,7 @@ function proceedWithUpgrade { checkUpgradeStatus "VIC Appliance" ${appliance_upgrade_status} local ver="$1" - if [ "$ver" == "$VER_1_2_1" ] || [ "$ver" == "$VER_1_3_0" ] || [ "$ver" == "$VER_1_3_1" ] || [ "$ver" == "$VER_1_4_0" ] || [ "$ver" == "$VER_1_4_1" ] || [ "$ver" == "$VER_1_4_2" ] || [ "$ver" == "$VER_1_4_3" ] || [ "$ver" == "$VER_1_4_4" ] || [ "$ver" == "$VER_1_5_0" ] || [ "$ver" == "$VER_1_5_1" ] || [ "$ver" == "$VER_1_5_2" ] || [ "$ver" == "$VER_1_5_3" ] || [ "$ver" == "$VER_1_5_4" ] || [ "$ver" == "$VER_1_5_5" ] || [ "$ver" == "$VER_1_5_6" ]; then + if [ "$ver" == "$VER_1_2_1" ] || [ "$ver" == "$VER_1_3_0" ] || [ "$ver" == "$VER_1_3_1" ] || [ "$ver" == "$VER_1_4_0" ] || [ "$ver" == "$VER_1_4_1" ] || [ "$ver" == "$VER_1_4_2" ] || [ "$ver" == "$VER_1_4_3" ] || [ "$ver" == "$VER_1_4_4" ] || [ "$ver" == "$VER_1_5_0" ] || [ "$ver" == "$VER_1_5_1" ] || [ "$ver" == "$VER_1_5_2" ] || [ "$ver" == "$VER_1_5_3" ] || [ "$ver" == "$VER_1_5_4" ] || [ "$ver" == "$VER_1_5_5" ] || [ "$ver" == "$VER_1_5_6" ] || [ "$ver" == "$VER_1_5_7" ]; then log "" log "Detected old appliance's version as $ver." diff --git a/installer/build/scripts/upgrade/util.sh b/installer/build/scripts/upgrade/util.sh index 47105dd80..d4e027254 100644 --- a/installer/build/scripts/upgrade/util.sh +++ b/installer/build/scripts/upgrade/util.sh @@ -108,7 +108,7 @@ function getApplianceVersion() { local VER_1_1_1="v1.1.1" local VER_1_2_0="v1.2.0" local VER_1_2_1="v1.2.1" - local VALID_VER=($VER_1_2_1 "v1.3.0" "v1.3.1" "v1.4.0" "v1.4.1" "v1.4.2" "v1.4.3" "v1.4.4" "v1.5.0" "v1.5.1" "v1.5.2" "v1.5.3" "v1.5.4" "v1.5.5" "v1.5.6") + local VALID_VER=($VER_1_2_1 "v1.3.0" "v1.3.1" "v1.4.0" "v1.4.1" "v1.4.2" "v1.4.3" "v1.4.4" "v1.5.0" "v1.5.1" "v1.5.2" "v1.5.3" "v1.5.4" "v1.5.5" "v1.5.6" "v1.5.7") local COPIED_DIR="$1" local ver="" local tag=""