From 47fdfdc25cbe6c5f84adaf1292d60c7abae206d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Fri, 9 Jan 2026 14:16:57 +0100 Subject: [PATCH] Fixed postrun_action ping loop --- deploy.sh | 3 +++ 1 file changed, 3 insertions(+) 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. \