mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-18 07:47:42 +02:00
19 lines
327 B
Bash
Executable File
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 "$@"
|