more debug "server connectivity"
parent
b8e64641f7
commit
72afb69376
|
@ -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/"
|
||||
|
|
Loading…
Reference in New Issue