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:
parent
8a189c777a
commit
0fa406b9c8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user