Fixed postrun_action ping loop

This commit is contained in:
Raphaël Numbus
2026-01-09 14:16:57 +01:00
parent 2026ff9fd5
commit 47fdfdc25c
+3
View File
@@ -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; } 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 while FOUND="false"; do
if ping -c1 -W1 $HOME_SERVER_IP >/dev/null 2>&1; then if ping -c1 -W1 $HOME_SERVER_IP >/dev/null 2>&1; then
FOUND="true" FOUND="true"
exit 0 exit 0
else
(i++) (i++)
if [[ "\${i}" -gt 150 ]]; then if [[ "\${i}" -gt 150 ]]; then
echo -e "\n\n❌ Could not connect to the server after 150 retries. \ echo -e "\n\n❌ Could not connect to the server after 150 retries. \