mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 18:42:30 +03:00
b091c75372
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3421 GitOrigin-RevId: 8802d7e6a360edee62011ef371cc8930f36b25b1
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 localhost,"${PORT}" -U SA -P "DockerComposePassword!" -i init.sql && break || sleep "${SLEEP}";
|
|
done
|
|
|
|
echo Finished attempts.
|