Update tools.func

This commit is contained in:
CanbiZ 2025-07-10 15:47:09 +02:00
parent 05e24b3b7e
commit 6ab87422a1

View File

@ -1893,8 +1893,9 @@ function setup_clickhouse() {
if ! command -v clickhouse >/dev/null; then if ! command -v clickhouse >/dev/null; then
msg_info "Setup ClickHouse" msg_info "Setup ClickHouse"
if ! getent ahosts packages.clickhouse.com >/dev/null; then if ! dig +short packages.clickhouse.com | grep -qE '^[0-9a-f:.]+$'; then
msg_error "DNS resolution failed possibly blocked (AdGuard, Pi-hole)" msg_error "DNS blocked: packages.clickhouse.com"
echo "💡 Likely blocked by AdGuard, Pi-hole or similar"
return 1 return 1
fi fi