Skip to content
Snippets Groups Projects
Verified Commit 925ba2af authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[MapCareTech] Add superuser without prompting in entrypoint

parent 74bfb321
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ umap collectstatic --noinput ...@@ -26,7 +26,7 @@ umap collectstatic --noinput
echo "Compress static files..." echo "Compress static files..."
umap compress umap compress
echo "Create superuser..." echo "Create superuser..."
umap createsuperuser umap createsuperuser --noinput --username ${SUPERUSER_LOGIN} --password ${SUPERUSER_PASSWORD}
echo "Launch uMap..." echo "Launch uMap..."
exec $@ exec $@
...@@ -4,3 +4,6 @@ SECRET_KEY= ...@@ -4,3 +4,6 @@ SECRET_KEY=
ADMIN_EMAIL= ADMIN_EMAIL=
# Database URL # Database URL
DATABASE_URL=postgis://user:password@umap-db-caretech/caretech DATABASE_URL=postgis://user:password@umap-db-caretech/caretech
# Superuser
SUPERUSER_LOGIN=caretech
SUPERUSER_PASSWORD=
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment