From 01c3a9c9b65f500512201414481c3f24ce430c18 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Fri, 6 Mar 2020 20:39:53 +0100 Subject: [PATCH] timeout in v-list-sys-web-status --- bin/v-list-sys-web-status | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/v-list-sys-web-status b/bin/v-list-sys-web-status index eb58c81c..aaa33e4c 100755 --- a/bin/v-list-sys-web-status +++ b/bin/v-list-sys-web-status @@ -28,17 +28,17 @@ fi # Displaying proxy status if [ "$PROXY_SYSTEM" = 'nginx' ]; then echo "

$PROXY_SYSTEM STATUS

"| tr '[:lower:]' '[:upper:]' - wget -qO- http://localhost:8084/ + curl -fsSL --max-time 3 http://localhost:8084/ echo "


" fi # Displaying web server status echo "

$WEB_SYSTEM STATUS

"| tr '[:lower:]' '[:upper:]' if [ "$WEB_SYSTEM" != 'nginx' ]; then - wget -qO- http://localhost:8081/server-status/ |\ + curl -fsSL --max-time 3 http://localhost:8081/server-status/ |\ egrep -v "html|DOCTYPE|h1>|title|head" else - wget -qO- http://localhost:8084/ + curl -fsSL --max-time 3 http://localhost:8084/ fi