From f5ea0f8d8d84d7d3697da1182db9f1862a22f069 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 11 Dec 2024 11:25:35 +0100 Subject: [PATCH] docker entrypoint: bugfix when DPP env var unbound --- docker/devicehub-django.entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/devicehub-django.entrypoint.sh b/docker/devicehub-django.entrypoint.sh index 73a0f19..d6d7bb2 100644 --- a/docker/devicehub-django.entrypoint.sh +++ b/docker/devicehub-django.entrypoint.sh @@ -34,7 +34,7 @@ gen_env_vars() { ADMIN='True' PREDEFINED_TOKEN="${PREDEFINED_TOKEN:-}" # specific dpp env vars - if [ "${DPP}" = 'true' ]; then + if [ "${DPP:-}" = 'true' ]; then # fill env vars in this docker entrypoint wait_for_dpp_shared export API_DLT='http://api_connector:3010' @@ -129,7 +129,7 @@ config_phase() { # TODO: one error on add_user, and you don't add user anymore ./manage.py add_user "${INIT_ORG}" "${INIT_USER}" "${INIT_PASSWD}" "${ADMIN}" "${PREDEFINED_TOKEN}" - if [ "${DPP}" = 'true' ]; then + if [ "${DPP:-}" = 'true' ]; then # 12, 13, 14 config_dpp_part1