Change method for postgres readiness check

This commit is contained in:
Disassembler 2018-09-15 13:43:46 +02:00
parent 4543bbc49f
commit 3a2130eb48
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -7,7 +7,7 @@ start() {
}
start_post() {
ewaitfile 60 /var/lib/lxc/postgres/delta0/run/postgresql/.s.PGSQL.5432
timeout -t 60 sh -c 'until lxc-attach postgres -- pg_isready >/dev/null 2>&1; do usleep 50000; done'
}
stop() {