Skip to content

Commit

Permalink
Oracle GoldenGate
Browse files Browse the repository at this point in the history
 - Fix syntax error in `healthcheck`

Signed-off-by: Stephen Balousek <stephen.balousek@oracle.com>
  • Loading branch information
sbalousek committed May 2, 2024
1 parent fc05a95 commit 63f2c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OracleGoldenGate/23/bin/healthcheck
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]
}
Expand Down

0 comments on commit 63f2c9d

Please sign in to comment.