From 63f2c9d04e64c3959289d0da0fbe67987f3b0fc4 Mon Sep 17 00:00:00 2001 From: Stephen Balousek Date: Thu, 2 May 2024 08:24:19 -0700 Subject: [PATCH] Oracle GoldenGate - Fix syntax error in `healthcheck` Signed-off-by: Stephen Balousek --- OracleGoldenGate/23/bin/healthcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OracleGoldenGate/23/bin/healthcheck b/OracleGoldenGate/23/bin/healthcheck index bf8b3e07a..022e78df6 100755 --- a/OracleGoldenGate/23/bin/healthcheck +++ b/OracleGoldenGate/23/bin/healthcheck @@ -15,7 +15,7 @@ declare -A Ports=([nginx]=443 function service_healthy() { local serviceName="${1}" health healthy pgrep "${serviceName}" &>/dev/null || return 1 - health="$(curl -sf "http://127.0.0.1:${Ports[$serviceName}]}/services/v2/config/health/check")" || return 1 + health="$(curl -sf "http://127.0.0.1:${Ports[${serviceName}]}/services/v2/config/health/check")" || return 1 healthy="$(echo "${health}" | jq -r .response.healthy)" || return 1 [[ "${healthy}" == "true" ]] }