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
|
||||
}
|
||||
|
||||
echo "Running DNS health check ($DNS_CHECK_DOMAIN via $DNS_LISTEN_ADDR, up to 15 attempts)..."
|
||||
dns_ok=false
|
||||
for i in $(seq 1 15); do
|
||||
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"
|
||||
echo "Running DNS health check ($DNS_CHECK_DOMAIN via $DNS_LISTEN_ADDR)..."
|
||||
if ! dns_health_check; then
|
||||
echo "Error: DNS health check failed — Pi-hole not responding on $DNS_LISTEN_ADDR"
|
||||
rollback
|
||||
exit 1
|
||||
fi
|
||||
echo "DNS health check passed"
|
||||
|
||||
# ==============================
|
||||
# Очистка IPSET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue