Update tools.func
This commit is contained in:
parent
05e24b3b7e
commit
6ab87422a1
@ -1893,8 +1893,9 @@ function setup_clickhouse() {
|
||||
|
||||
if ! command -v clickhouse >/dev/null; then
|
||||
msg_info "Setup ClickHouse"
|
||||
if ! getent ahosts packages.clickhouse.com >/dev/null; then
|
||||
msg_error "DNS resolution failed – possibly blocked (AdGuard, Pi-hole)"
|
||||
if ! dig +short packages.clickhouse.com | grep -qE '^[0-9a-f:.]+$'; then
|
||||
msg_error "DNS blocked: packages.clickhouse.com"
|
||||
echo "💡 Likely blocked by AdGuard, Pi-hole or similar"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user