fix: remove internet wait loop, retry abra install 300 times

This commit is contained in:
2025-09-17 16:49:03 +02:00
parent 70551d1e75
commit 20a7f030ef

View File

@@ -518,23 +518,9 @@ isoConfig
exit 0 exit 0
fi 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 # Attempt installation with retry logic
for attempt in {1..3}; do for attempt in {1..300}; do
echo "🚀 Installing abra (attempt $attempt/3)..." echo "🚀 Installing abra (attempt $attempt/300)..."
if curl -fsSL https://install.abra.coopcloud.tech | bash; then if curl -fsSL https://install.abra.coopcloud.tech | bash; then
# Verify installation success using CORRECT check method # Verify installation success using CORRECT check method
@@ -555,13 +541,13 @@ isoConfig
echo " Installation attempt $attempt failed" echo " Installation attempt $attempt failed"
fi fi
if [ $attempt -lt 3 ]; then if [ $attempt -lt 300 ]; then
echo " Retrying in 10 seconds..." echo " Retrying in 10 seconds..."
sleep 10 sleep 10
fi fi
done done
echo " abra installation failed after 3 attempts" echo " abra installation failed after 300 attempts"
exit 1 exit 1
''; '';