diff --git a/deploy.sh b/deploy.sh index 508fdec..db6c12d 100644 --- a/deploy.sh +++ b/deploy.sh @@ -728,10 +728,13 @@ postrun_action() { gum confirm "➡️ Select 'yes' once the machine rebooted and you unlocked the disks." || { echo -e "\n\n❌ Aborting as requested."; exit 1; } + FOUND="false" + i="0" while FOUND="false"; do if ping -c1 -W1 $HOME_SERVER_IP >/dev/null 2>&1; then FOUND="true" exit 0 + else (i++) if [[ "\${i}" -gt 150 ]]; then echo -e "\n\n❌ Could not connect to the server after 150 retries. \