[bitnami/kong]: fix libkong.sh kong_stop function (#69389)

* fix(kong): libkong.sh kong_stop function

Signed-off-by: xavbourdeau <xavier.bourdeau@qima.com>

* Keep prefix parameter

Signed-off-by: Gonzalo Gómez Gracia <gongomgra@users.noreply.github.com>

---------

Signed-off-by: xavbourdeau <xavier.bourdeau@qima.com>
Signed-off-by: Gonzalo Gómez Gracia <gongomgra@users.noreply.github.com>
Co-authored-by: Gonzalo Gómez Gracia <gongomgra@users.noreply.github.com>
This commit is contained in:
xavbourdeau 2024-07-22 16:47:12 +02:00 committed by GitHub
parent 1893aaaeae
commit 2c338a6262
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ is_kong_not_running() {
kong_stop() {
local -r retries=5
local -r sleep_time=5
kong stop -c "$KONG_CONF_FILE" -p "$KONG_PREFIX"
kong stop -p "$KONG_PREFIX"
if ! retry_while is_kong_not_running "$retries" "$sleep_time"; then
error "Kong failed to shut down"
exit 1