From 925ba2afd0d5e7b4e3fcb24207a934d812f573e2 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin <quentinduchemin@tuta.io> Date: Wed, 23 Sep 2020 20:08:03 +0200 Subject: [PATCH] [MapCareTech] Add superuser without prompting in entrypoint --- caretech/map/entrypoint.sh | 2 +- caretech/map/secrets/umap.secrets.example | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/caretech/map/entrypoint.sh b/caretech/map/entrypoint.sh index 553c13da..7cd31032 100644 --- a/caretech/map/entrypoint.sh +++ b/caretech/map/entrypoint.sh @@ -26,7 +26,7 @@ umap collectstatic --noinput echo "Compress static files..." umap compress echo "Create superuser..." -umap createsuperuser +umap createsuperuser --noinput --username ${SUPERUSER_LOGIN} --password ${SUPERUSER_PASSWORD} echo "Launch uMap..." exec $@ diff --git a/caretech/map/secrets/umap.secrets.example b/caretech/map/secrets/umap.secrets.example index 22e6c88c..07f86f62 100644 --- a/caretech/map/secrets/umap.secrets.example +++ b/caretech/map/secrets/umap.secrets.example @@ -4,3 +4,6 @@ SECRET_KEY= ADMIN_EMAIL= # Database URL DATABASE_URL=postgis://user:password@umap-db-caretech/caretech +# Superuser +SUPERUSER_LOGIN=caretech +SUPERUSER_PASSWORD= -- GitLab