From bf47d4bc5d20a2ed61cfab04540494d37d789577 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 16 Oct 2024 22:05:09 +0200 Subject: [PATCH] docker: bugfix wrong detection of demo --- docker/devicehub-django.entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/devicehub-django.entrypoint.sh b/docker/devicehub-django.entrypoint.sh index e988d4c..2c7c77b 100644 --- a/docker/devicehub-django.entrypoint.sh +++ b/docker/devicehub-django.entrypoint.sh @@ -30,7 +30,7 @@ deploy() { # 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 [ "${DEMO:-}" ]; then + if [ "${DEMO:-}" = 'y' ]; then ./manage.py up_snapshots example/snapshots/ "${INIT_USER}" fi fi