From 66695d080125101b205bcfe5e92bcf604ee77f21 Mon Sep 17 00:00:00 2001 From: Valerie Hampe Date: Wed, 18 Sep 2024 17:00:14 -0400 Subject: [PATCH] Improved health check (#321) --- healthcheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/healthcheck.sh b/healthcheck.sh index 1f92e7e..47b8014 100644 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,6 +1,7 @@ #!/bin/bash +set -o pipefail -curl -k -f -X POST "https://127.0.0.1:${SERVERGAMEPORT}/api/v1" \ +curl -k -f -s -S -X POST "https://127.0.0.1:${SERVERGAMEPORT}/api/v1" \ -H "Content-Type: application/json" \ -d '{"function":"HealthCheck","data":{"clientCustomData":""}}' \ | jq -e '.data.health == "healthy"'