fix: improve abra install retry logic and remove restart loop

This commit is contained in:
2025-09-17 16:57:55 +02:00
parent 20a7f030ef
commit fa5b134600

View File

@@ -519,10 +519,13 @@ isoConfig
fi
# Attempt installation with retry logic
for attempt in {1..300}; do
echo "🚀 Installing abra (attempt $attempt/300)..."
for attempt in {1..60}; do
echo "🚀 Installing abra (attempt $attempt/60)..."
if curl -fsSL https://install.abra.coopcloud.tech | bash; then
# Quick internet check before attempting installation
if ! curl -s --max-time 3 https://abra.coopcloud.tech >/dev/null 2>&1; then
echo "🌐 No internet connectivity, skipping attempt $attempt"
elif curl -fsSL https://install.abra.coopcloud.tech | bash; then
# Verify installation success using CORRECT check method
if sudo abra --version >/dev/null 2>&1; then
echo " abra installed successfully"
@@ -541,13 +544,13 @@ isoConfig
echo " Installation attempt $attempt failed"
fi
if [ $attempt -lt 300 ]; then
echo " Retrying in 10 seconds..."
sleep 10
if [ $attempt -lt 60 ]; then
echo " Retrying in 5 seconds..."
sleep 5
fi
done
echo " abra installation failed after 300 attempts"
echo " abra installation failed after 60 attempts"
exit 1
'';
@@ -555,8 +558,6 @@ isoConfig
Type = "oneshot";
RemainAfterExit = true;
User = "root";
Restart = "on-failure";
RestartSec = "30s";
Environment = [
"TERM=xterm-256color"
"HOME=/root"