ISO-27001-Risk-Management/entrypoint.sh

14 lines
315 B
Bash
Raw Normal View History

2025-09-05 12:02:41 +02:00
#!/bin/sh
set -e
echo "Running migrations..."
python manage.py migrate --noinput
echo "Creating superuser if it doesn't exist..."
python manage.py createsuperuser \
--noinput \
--username "${DJANGO_SUPERUSER_USERNAME}" \
--email "${DJANGO_SUPERUSER_EMAIL}" || true
echo "Starting server..."
exec "$@"