From 20a7f030ef41e25552fd73f232ae6bde079ee957 Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Wed, 17 Sep 2025 16:49:03 +0200 Subject: [PATCH] fix: remove internet wait loop, retry abra install 300 times --- common.nix | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/common.nix b/common.nix index ceed2d4..7883e74 100644 --- a/common.nix +++ b/common.nix @@ -518,23 +518,9 @@ isoConfig exit 0 fi - # Wait for actual internet connectivity - echo "🌐 Waiting for internet connectivity..." - for i in {1..300}; do - if curl -s --max-time 5 https://abra.coopcloud.tech >/dev/null 2>&1; then - echo "✅ Internet connectivity confirmed" - break - fi - if [ $i -eq 300 ]; then - echo "❌ No internet connectivity after 10 minutes" - exit 1 - fi - sleep 2 - done - # Attempt installation with retry logic - for attempt in {1..3}; do - echo "🚀 Installing abra (attempt $attempt/3)..." + for attempt in {1..300}; do + echo "🚀 Installing abra (attempt $attempt/300)..." if curl -fsSL https://install.abra.coopcloud.tech | bash; then # Verify installation success using CORRECT check method @@ -555,13 +541,13 @@ isoConfig echo "❌ Installation attempt $attempt failed" fi - if [ $attempt -lt 3 ]; then + if [ $attempt -lt 300 ]; then echo "⏳ Retrying in 10 seconds..." sleep 10 fi done - echo "❌ abra installation failed after 3 attempts" + echo "❌ abra installation failed after 300 attempts" exit 1 '';