more debug "server connectivity"

pull/8/head
Natalia Serrano 2023-11-28 13:39:25 +01:00
parent b8e64641f7
commit 72afb69376
1 changed files with 2 additions and 2 deletions

View File

@ -858,8 +858,8 @@ function checkNetworkConnection()
echoAndLog "${FUNCNAME}(): Checking OpenGnsys server connectivity."
OPENGNSYS_SERVER=${OPENGNSYS_SERVER:-"opengnsys.es"}
if which curl &>/dev/null; then
curl --connect-timeout 10 --retry 5 --retry-delay 5 "https://$OPENGNSYS_SERVER/" -o /dev/null && \
curl --connect-timeout 10 --retry 5 --retry-delay 5 "http://$OPENGNSYS_SERVER/" -o /dev/null
curl --connect-timeout 10 --max-time 30 --retry 5 --retry-delay 5 "https://$OPENGNSYS_SERVER/" -o /dev/null && \
curl --connect-timeout 10 --max-time 30 --retry 5 --retry-delay 5 "http://$OPENGNSYS_SERVER/" -o /dev/null
elif which wget &>/dev/null; then
wget --spider -q "https://$OPENGNSYS_SERVER/" && \
wget --spider -q "http://$OPENGNSYS_SERVER/"