debug fix v14
This commit is contained in:
parent
7f72221586
commit
59759c4151
1 changed files with 7 additions and 4 deletions
|
|
@ -1,9 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "PSQL version: " && psql --version
|
||||
until pg_isready -U clearing -h db -p 5432 -d clearing -t 1; do
|
||||
echo "Waiting for database to be ready..."
|
||||
sleep 2
|
||||
done
|
||||
|
||||
cat init.sql
|
||||
|
||||
echo "Updating database" && psql -h db clearing < init.sql clearing
|
||||
echo "PSQL version: $(psql --version)"
|
||||
echo "Updating database"
|
||||
psql -U clearing -h db -p 5432 -d clearing -f init.sql
|
||||
|
||||
tail -f /dev/null
|
||||
Loading…
Add table
Reference in a new issue