diff --git a/postgres-appliance/scripts/patroni_wait.sh b/postgres-appliance/scripts/patroni_wait.sh index 973a0df86..4e996c868 100755 --- a/postgres-appliance/scripts/patroni_wait.sh +++ b/postgres-appliance/scripts/patroni_wait.sh @@ -85,6 +85,7 @@ if [ $# -gt 0 ]; then options="$options --cacert $SSL_RESTAPI_CA_FILE" fi + # shellcheck disable=SC2086 while [ "$(curl -so /dev/null -w '%{http_code}' $options "$protocol://localhost:$PORT/$ROLE")" != "200" ]; do [ -n "$TIMEOUT" ] && [ "$CUTOFF" -le "$(date +%s)" ] && exit 2 sleep "$INTERVAL"