silent sleep for 3 steps

This commit is contained in:
CanbiZ 2025-08-25 15:37:19 +02:00
parent 1e602015b9
commit e9b7ded215

View File

@ -1372,8 +1372,12 @@ EOF
fi fi
# Wait and retry if not reachable yet # Wait and retry if not reachable yet
if [ "$i" -lt 10 ]; then if [ "$i" -lt 10 ]; then
if [ "$i" -le 3 ]; then
sleep 2
else
msg_warn "No network in LXC yet (try $i/10) waiting..." msg_warn "No network in LXC yet (try $i/10) waiting..."
sleep 3 sleep 3
fi
else else
# After 10 unsuccessful ping attempts, try HTTP connectivity via wget as fallback # After 10 unsuccessful ping attempts, try HTTP connectivity via wget as fallback
msg_warn "Ping failed 10 times. Trying HTTP connectivity check (wget) as fallback..." msg_warn "Ping failed 10 times. Trying HTTP connectivity check (wget) as fallback..."