mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
a598ca47c2
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4590 GitOrigin-RevId: 67e3c6a5d1aa77e2fd180678ec5a619f7b78e65a
14 lines
348 B
Bash
Executable File
14 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo 'Attempting to run script (10 times max)'
|
|
PORT="${1:-1433}"
|
|
SLEEP="3"
|
|
|
|
sleep "${SLEEP}"
|
|
for i in 1 2 3 4 5 6 7 8 9 10; do
|
|
echo Attempt "#$i" - will wait "${SLEEP}" seconds if this fails ...
|
|
sqlcmd -S 127.0.0.1,"${PORT}" -U SA -P "DockerComposePassword!" -i init.sql && break || sleep "${SLEEP}";
|
|
done
|
|
|
|
echo Finished attempts.
|