Fix KEYCLOAK_EXTRA_ARGS enviroment on run script (#66)

* Fix KEYCLOAK_EXTRA_ARGS enviroment on run script

Signed-off-by: Andrea Milazzo <andreamilazzo@mancausoft.org>
Signed-off-by: Andrea Milazzo <andrea@cledar.pl>

* Clean fix for KEYCLOAK_EXTRA_ARGS enviroment

Signed-off-by: Andrea Milazzo <andrea@cledar.pl>
This commit is contained in:
Andrea Milazzo
2022-05-30 12:58:37 +02:00
committed by Bitnami Containers
parent a3acc1ed0b
commit d10d76a9ea
2 changed files with 6 additions and 6 deletions
@@ -21,7 +21,7 @@ conf_file="${KEYCLOAK_CONF_DIR}/${KEYCLOAK_CONF_FILE}"
is_boolean_yes "$KEYCLOAK_PRODUCTION" && start_param="start" || start_param="start-dev"
start_command=("${KEYCLOAK_BIN_DIR}/kc.sh -cf ${conf_file} ${start_param}")
start_command=("${KEYCLOAK_BIN_DIR}/kc.sh" "-cf" "$conf_file" "$start_param")
# Add extra args
if [[ -n "$KEYCLOAK_EXTRA_ARGS" ]]; then
@@ -30,7 +30,7 @@ if [[ -n "$KEYCLOAK_EXTRA_ARGS" ]]; then
fi
if am_i_root; then
exec gosu "$KEYCLOAK_DAEMON_USER" /bin/bash -c "${start_command[@]}"
exec gosu "$KEYCLOAK_DAEMON_USER" /bin/bash -c "${start_command[*]}"
else
exec /bin/bash -c "${start_command[@]}"
exec /bin/bash -c "${start_command[*]}"
fi
@@ -21,7 +21,7 @@ conf_file="${KEYCLOAK_CONF_DIR}/${KEYCLOAK_CONF_FILE}"
is_boolean_yes "$KEYCLOAK_PRODUCTION" && start_param="start" || start_param="start-dev"
start_command=("${KEYCLOAK_BIN_DIR}/kc.sh -cf ${conf_file} ${start_param}")
start_command=("${KEYCLOAK_BIN_DIR}/kc.sh" "-cf" "$conf_file" "$start_param")
# Add extra args
if [[ -n "$KEYCLOAK_EXTRA_ARGS" ]]; then
@@ -30,7 +30,7 @@ if [[ -n "$KEYCLOAK_EXTRA_ARGS" ]]; then
fi
if am_i_root; then
exec gosu "$KEYCLOAK_DAEMON_USER" /bin/bash -c "${start_command[@]}"
exec gosu "$KEYCLOAK_DAEMON_USER" /bin/bash -c "${start_command[*]}"
else
exec /bin/bash -c "${start_command[@]}"
exec /bin/bash -c "${start_command[*]}"
fi