Fix check logic

This commit is contained in:
TheSpad
2023-07-05 20:38:02 +01:00
parent eacf1b24dc
commit 5784bb194d

View File

@@ -2,7 +2,7 @@
PORT=$(xmlstarlet sel -T -t -v /NetworkConfiguration/HttpServerPortNumber /config/network.xml)
if [[ $(curl -sL "http://localhost:${PORT:-8096}/health" | jq -r '.status' 2>/dev/null) = "Healthy" ]]; then
if [[ $(curl -sL "http://localhost:${PORT:-8096}/health" 2>/dev/null) = "Healthy" ]]; then
exit 0
else
exit 1