mirror of
https://github.com/cassandra/home-information.git
synced 2026-04-18 13:40:25 -04:00
* Refactor integration initialization processes to ensure required DB records are created after migrations --------- Co-authored-by: Anthony Cassandra <github@cassandra.org>
24 lines
484 B
Bash
24 lines
484 B
Bash
#!/bin/bash
|
|
|
|
echo "Initial Django admin initialization."
|
|
cd /src
|
|
|
|
echo "Collecting static files..."
|
|
python manage.py collectstatic --noinput
|
|
|
|
echo "Running migrations..."
|
|
python manage.py migrate --noinput
|
|
|
|
echo "Creating superuser and groups..."
|
|
python manage.py hi_createsuperuser
|
|
python manage.py hi_creategroups
|
|
|
|
echo "Syncing settings..."
|
|
python manage.py sync_settings
|
|
|
|
echo "Syncing integrations..."
|
|
python manage.py sync_integrations
|
|
|
|
echo "Starting supervisord..."
|
|
exec "$@"
|