From 0e8607d93ecf45f3573220e97144e91a619c921a Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 16 Oct 2024 21:09:16 +0200 Subject: [PATCH] docker: make default user admin --- docker/devicehub-django.entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/devicehub-django.entrypoint.sh b/docker/devicehub-django.entrypoint.sh index 920cdf0..9361fdb 100644 --- a/docker/devicehub-django.entrypoint.sh +++ b/docker/devicehub-django.entrypoint.sh @@ -24,9 +24,10 @@ deploy() { INIT_ORG="${INIT_ORG:-example-org}" INIT_USER="${INIT_USER:-user@example.org}" INIT_PASSWD="${INIT_PASSWD:-1234}" + ADMIN='True' ./manage.py add_institution "${INIT_ORG}" # TODO: one error on add_user, and you don't add user anymore - ./manage.py add_user "${INIT_ORG}" "${INIT_USER}" "${INIT_PASSWD}" + ./manage.py add_user "${INIT_ORG}" "${INIT_USER}" "${INIT_PASSWD}" "${ADMIN}" if [ "${DEMO:-}" ]; then ./manage.py up_snapshots example/snapshots/ "${INIT_USER}"