We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945c604 commit bb4cce0Copy full SHA for bb4cce0
OracleGoldenGate/23/bin/healthcheck
@@ -15,7 +15,7 @@ declare -A Ports=([nginx]=443
15
function service_healthy() {
16
local serviceName="${1}" health healthy
17
pgrep "${serviceName}" &>/dev/null || return 1
18
- 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
19
healthy="$(echo "${health}" | jq -r .response.healthy)" || return 1
20
[[ "${healthy}" == "true" ]]
21
}
0 commit comments