Check for DNS before run.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
pull/4478/head
Dan Schaper 2 years ago
parent a780fc59e2
commit 76ae75689c
No known key found for this signature in database
GPG Key ID: 6055EE2AD4004FC0

@ -898,7 +898,11 @@ if [[ "${forceDelete:-}" == true ]]; then
fi
# Gravity downloads blocklists next
gravity_CheckDNSResolutionAvailable
if [[ ! gravity_CheckDNSResolutionAvailable ]]; then
echo -e " ${CROSS} Can not complete gravity update, no DNS is available. Please contact support."
exit 1
fi
gravity_DownloadBlocklists
# Create local.list

Loading…
Cancel
Save