зеркало из https://github.com/mozilla/treeherder.git
Bug 1611502 - Do not run initialize_data in Docker container if DATABASE_URL is being used (#5940)
This commit is contained in:
Родитель
a76bafd973
Коммит
a2e7e81adc
|
@ -14,7 +14,10 @@ while ! nc -z "${DATABASE_HOST}" "${DATABASE_PORT}" &> /dev/null; do
|
|||
sleep 1;
|
||||
done
|
||||
|
||||
# Initialize migrations and SETA
|
||||
./initialize_data.sh
|
||||
# Only execute if we're using the mysql container
|
||||
if [ "${DATABASE_URL}" == "mysql://root@mysql/treeherder" ]; then
|
||||
# Initialize migrations and SETA
|
||||
./initialize_data.sh
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
Загрузка…
Ссылка в новой задаче