⚗️ Chore: Improve logging message and test actions
This commit is contained in:
parent
25f759e407
commit
270fed9c0c
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@ shift 2
|
||||||
cmd="$@"
|
cmd="$@"
|
||||||
|
|
||||||
until nc -z -v -w1 "$host" "$port"; do
|
until nc -z -v -w1 "$host" "$port"; do
|
||||||
>&2 echo "PostgreSQL is unavailable - sleeping"
|
>&2 echo "PostgreSQL is unavailable - sleeping"
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|
||||||
>&2 echo "PostgreSQL is up - executing command"
|
>&2 echo "PostgreSQL is up - executing startup sequence"
|
||||||
exec $cmd
|
exec $cmd
|
||||||
|
|
Loading…
Reference in a new issue