DNS check in gravity should not check for FTL as it might not be the host's name server

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2024-09-03 23:03:59 +02:00
parent a57d539098
commit ba2d10c65e
No known key found for this signature in database

View file

@ -309,14 +309,6 @@ gravity_CheckDNSResolutionAvailable() {
fi fi
# Determine error output message
if pgrep pihole-FTL &>/dev/null; then
echo -e " ${CROSS} DNS resolution is currently unavailable"
else
echo -e " ${CROSS} DNS service is not running"
"${PIHOLE_COMMAND}" restartdns
fi
# Ensure DNS server is given time to be resolvable # Ensure DNS server is given time to be resolvable
secs="120" secs="120"
echo -ne " ${INFO} Time until retry: ${secs}" echo -ne " ${INFO} Time until retry: ${secs}"