Update installUnbound.sh

This commit is contained in:
Gerd Zelo 2022-01-29 16:15:25 +01:00 committed by GitHub
parent d5cde9d4f0
commit 23b5941500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,11 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi
if ! (ping -c1 -w2 google.de >/dev/null) && ! (ping -c1 -w2 cloudflare.com >/dev/null); then
echo "Keine Internetverbindung!"
exit 1
fi
echo "*** Unbound installieren"
echo ""
apt-get update