Files
rengine/docker-entrypoint.sh
T
2020-07-22 18:33:04 +00:00

19 lines
327 B
Bash
Executable File

#!/bin/sh
if [ "$DATABASE" = "postgres" ]
then
echo "Waiting for postgres..."
while ! nc -z db 5432; do
sleep 0.1
done
echo "PostgreSQL started"
fi
python manage.py migrate
# Load default engine types
python manage.py loaddata fixtures/default_scan_engines.yaml --app scanEngine.EngineType
exec "$@"