File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ log_info "You can press Ctrl+C to exit at any time."
676676echo " "
677677
678678SERVER_URL=" http://${NEW_PUBLIC_IP} :3001/uptime"
679- MAX_ATTEMPTS=40 # 10 minutes max (40 * 15s)
679+ MAX_ATTEMPTS=10 # Max 10 retries
680680ATTEMPT=0
681681SLEEP_INTERVAL=15
682682
697697
698698if [ $ATTEMPT -ge $MAX_ATTEMPTS ]; then
699699 echo " "
700- log_warning " Server check timed out after $(( MAX_ATTEMPTS * SLEEP_INTERVAL / 60 )) minutes "
700+ log_warning " Server check timed out after $MAX_ATTEMPTS attempts "
701701 log_info " The VM may still be starting up. Check manually:"
702702 log_info " curl -v http://${NEW_PUBLIC_IP} :3001/uptime"
703703fi
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ log_info "You can press Ctrl+C to exit at any time."
557557echo " "
558558
559559SERVER_URL=" http://${NEW_EXTERNAL_IP} :3001/uptime"
560- MAX_ATTEMPTS=40 # 10 minutes max (40 * 15s)
560+ MAX_ATTEMPTS=10 # Max 10 retries
561561ATTEMPT=0
562562SLEEP_INTERVAL=15
563563
578578
579579if [ $ATTEMPT -ge $MAX_ATTEMPTS ]; then
580580 echo " "
581- log_warning " Server check timed out after $(( MAX_ATTEMPTS * SLEEP_INTERVAL / 60 )) minutes "
581+ log_warning " Server check timed out after $MAX_ATTEMPTS attempts "
582582 log_info " The VM may still be starting up. Check manually:"
583583 log_info " curl -v http://${NEW_EXTERNAL_IP} :3001/uptime"
584584fi
You can’t perform that action at this time.
0 commit comments