1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

Check for DNS before run.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2021-12-20 11:09:11 -08:00
parent a780fc59e2
commit 76ae75689c
No known key found for this signature in database
GPG Key ID: 6055EE2AD4004FC0

View File

@ -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