[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:
parent
1893aaaeae
commit
2c338a6262
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue