From d99cbdb4fa1aa2fd008b7a85b83f906d2966664a Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Tue, 1 May 2018 16:05:43 -0500 Subject: [PATCH] Fix upgrade script variable (#1681) (#1683) --- installer/build/scripts/upgrade/upgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/build/scripts/upgrade/upgrade.sh b/installer/build/scripts/upgrade/upgrade.sh index d2df74cfcd..f466cf9454 100755 --- a/installer/build/scripts/upgrade/upgrade.sh +++ b/installer/build/scripts/upgrade/upgrade.sh @@ -175,7 +175,6 @@ function proceedWithUpgrade { if [ "$ver" == "$VER_1_2_1" ] || [ "$ver" == "$VER_1_3_0" ] || [ "$ver" == "$VER_1_3_1" ]; then log "" log "Detected old appliance's version as $ver." - logn "If the old appliance's version is not detected correctly, please enter \"n\" to abort the upgrade and contact VMware support." if [ -n "${APPLIANCE_VERSION}" ]; then if [ "$ver" == "${APPLIANCE_VERSION}" ]; then @@ -188,6 +187,7 @@ function proceedWithUpgrade { fi fi + logn "If the old appliance's version is not detected correctly, please enter \"n\" to abort the upgrade and contact VMware support." while true; do log "" log "Do you wish to proceed with upgrade? [y/n]" @@ -581,7 +581,7 @@ function main { if [ -n "${DESTROY_ENABLED}" ] ; then log "Destroying the old VIC appliance" - govc vm.destroy "$VM_NAME" + govc vm.destroy "$OLD_VM_NAME" log "Old VIC appliance destroyed" fi