From 7a85ebd8f8fc73ee3daa912b158d2e0d9544149f Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 21 Sep 2023 20:57:00 +0200 Subject: [PATCH] client_id_config is not a global env var then, move it to downcase to avoid confusion --- docker/devicehub.entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/devicehub.entrypoint.sh b/docker/devicehub.entrypoint.sh index 9783b367..800d04c7 100755 --- a/docker/devicehub.entrypoint.sh +++ b/docker/devicehub.entrypoint.sh @@ -118,18 +118,18 @@ config_oidc() { elif [ "${ID_SERVICE}" = "client_id" ]; then # in DEVICEHUB_HOST we remove anything before :// - CLIENT_ID_CONFIG="/shared/client_id_${DEVICEHUB_HOST#*://}" + client_id_config="/shared/client_id_${DEVICEHUB_HOST#*://}" # wait that the file generated by the server_id is readable while true; do - if [ -f "${CLIENT_ID_CONFIG}" ]; then + if [ -f "${client_id_config}" ]; then break fi sleep 1 done - client_id="$(cat "${CLIENT_ID_CONFIG}" | jq -r '.client_id')" - client_secret="$(cat "${CLIENT_ID_CONFIG}" | jq -r '.client_secret')" + client_id="$(cat "${client_id_config}" | jq -r '.client_id')" + client_secret="$(cat "${client_id_config}" | jq -r '.client_secret')" flask add_client_oidc \ "${SERVER_ID_HOST}" \