Fixed a bug in updating the instance IP on new instance startup

This commit is contained in:
hamilcarBarca17
2023-04-11 12:14:55 -06:00
parent 765522cb4a
commit 2dd371bc0b
+2 -1
View File
@@ -94,8 +94,9 @@ startInstance() {
showGaugeBoxForAwsCommand "$desiredState" "Starting Your Instance" "Successfully Started Your Instance!" "Failed to start your instance!" showGaugeBoxForAwsCommand "$desiredState" "Starting Your Instance" "Successfully Started Your Instance!" "Failed to start your instance!"
printInfo "Checking to see if IP changed" printInfo "Checking to see if IP changed"
instanceIp=$(getInstanceIp) instanceIp=$(getInstanceIp)
if [[ $instanceIp != $AWS_TEAM_BUILDING_EC2_INSTANCE_IP ]]; then if [[ $instanceIp != "$AWS_TEAM_BUILDING_EC2_INSTANCE_IP" ]]; then
setConfigValue "AWS_TEAM_BUILDING_EC2_INSTANCE_IP" "$instanceIp" setConfigValue "AWS_TEAM_BUILDING_EC2_INSTANCE_IP" "$instanceIp"
export AWS_TEAM_BUILDING_EC2_INSTANCE_IP="$instanceIp"
createDcvConnectionProfileFromTemplate createDcvConnectionProfileFromTemplate
fi fi