From 9adf705f704b6300b1be5dc912269a3b2cbcdb9f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Dec 2019 09:48:50 +0300 Subject: [PATCH] pg_isready: don't try to connect as root --- app/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/startup.sh b/app/startup.sh index bb8671b..fe46213 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -1,6 +1,6 @@ #!/bin/sh -ex -while ! pg_isready -h $DB_HOST; do +while ! pg_isready -h $DB_HOST -U $DB_USER; do echo waiting until $DB_HOST is ready... sleep 3 done