15 lines
186 B
Bash
Executable File
15 lines
186 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Waiting for Oracle..."
|
|
|
|
until nc -z $SQL_HOST $SQL_PORT; do
|
|
sleep 1
|
|
done
|
|
|
|
echo "Oracle started"
|
|
|
|
python3 manage.py makemigrations
|
|
python3 manage.py migrate
|
|
|
|
exec "$@"
|