From 0fa406b9c8f140eb16b60ae39fa8a23d3bf59b4d Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 15 Aug 2020 03:08:03 +0200 Subject: [PATCH] check-connectivity.sh: Do not print errors if a website cannot reached, only if ALL websites not reachable print out a message. --- check-connectivity.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-connectivity.sh b/check-connectivity.sh index 870f13d..9a408e4 100755 --- a/check-connectivity.sh +++ b/check-connectivity.sh @@ -536,11 +536,9 @@ for _host in $HTTPS_CHECK_HOSTS ; do break ;; 5) echo_failed - error "The web proxy won't let us through. Direction was '$_host'" ;; *) echo_failed - error "Something is wrong with HTTP connections to '$_host'. Go check it." ;; esac else @@ -562,6 +560,8 @@ if $FOUND_CHECK_HOST_PROBLEM ; then PROBLEM_FOUND=true + error "No (configured) website could be reached." + if [[ -f "$RESTART_CHECK_FILE" ]] ; then _file_mod_time=$(date --utc --reference=$RESTART_CHECK_FILE +%s)