check-connectivity.sh: Do not print errors if a website cannot reached, only if ALL websites not reachable print out a message.

This commit is contained in:
Christoph 2020-08-15 03:08:03 +02:00
parent 8a189c777a
commit 0fa406b9c8

View File

@ -536,11 +536,9 @@ for _host in $HTTPS_CHECK_HOSTS ; do
break break
;; ;;
5) echo_failed 5) echo_failed
error "The web proxy won't let us through. Direction was '$_host'"
;; ;;
*) echo_failed *) echo_failed
error "Something is wrong with HTTP connections to '$_host'. Go check it."
;; ;;
esac esac
else else
@ -562,6 +560,8 @@ if $FOUND_CHECK_HOST_PROBLEM ; then
PROBLEM_FOUND=true PROBLEM_FOUND=true
error "No (configured) website could be reached."
if [[ -f "$RESTART_CHECK_FILE" ]] ; then if [[ -f "$RESTART_CHECK_FILE" ]] ; then
_file_mod_time=$(date --utc --reference=$RESTART_CHECK_FILE +%s) _file_mod_time=$(date --utc --reference=$RESTART_CHECK_FILE +%s)