mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
timeout in v-list-sys-web-status
This commit is contained in:
parent
5b9625d0c8
commit
01c3a9c9b6
1 changed files with 3 additions and 3 deletions
|
@ -28,17 +28,17 @@ fi
|
|||
# Displaying proxy status
|
||||
if [ "$PROXY_SYSTEM" = 'nginx' ]; then
|
||||
echo "<h2>$PROXY_SYSTEM STATUS</h2>"| tr '[:lower:]' '[:upper:]'
|
||||
wget -qO- http://localhost:8084/
|
||||
curl -fsSL --max-time 3 http://localhost:8084/
|
||||
echo "<br><br><br>"
|
||||
fi
|
||||
|
||||
# Displaying web server status
|
||||
echo "<h2>$WEB_SYSTEM STATUS</h2>"| 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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue