[MapCareTech] Add superuser without prompting in entrypoint

parent 74bfb321
......@@ -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 $@
......@@ -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=
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment