Compare commits
No commits in common. "de16de309cde3ea60366b04e8e9db3079f48a958" and "ee37746227bd172b81ac5f650148f552717e6721" have entirely different histories.
de16de309c
...
ee37746227
1 changed files with 4 additions and 14 deletions
|
|
@ -120,23 +120,13 @@ dns_health_check() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Running DNS health check ($DNS_CHECK_DOMAIN via $DNS_LISTEN_ADDR, up to 15 attempts)..."
|
echo "Running DNS health check ($DNS_CHECK_DOMAIN via $DNS_LISTEN_ADDR)..."
|
||||||
dns_ok=false
|
if ! dns_health_check; then
|
||||||
for i in $(seq 1 15); do
|
echo "Error: DNS health check failed — Pi-hole not responding on $DNS_LISTEN_ADDR"
|
||||||
if dns_health_check; then
|
|
||||||
dns_ok=true
|
|
||||||
echo "DNS health check passed (attempt $i)"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
echo " attempt $i failed, retrying in 1s..."
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! $dns_ok; then
|
|
||||||
echo "Error: DNS health check failed after 15 attempts — Pi-hole not responding on $DNS_LISTEN_ADDR"
|
|
||||||
rollback
|
rollback
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "DNS health check passed"
|
||||||
|
|
||||||
# ==============================
|
# ==============================
|
||||||
# Очистка IPSET
|
# Очистка IPSET
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue