Skip to content

Commit

Permalink
Fix upgrade script variable (#1681) (#1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtchin authored May 1, 2018
1 parent 256eda3 commit d99cbdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer/build/scripts/upgrade/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d99cbdb

Please sign in to comment.