We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0edb67 commit 9e85cd1Copy full SHA for 9e85cd1
image/db/rhel/scripts/start-db.sh
@@ -11,6 +11,8 @@ echo "Starting database..."
11
POSTGRES_PASSWORD=postgres /usr/local/bin/docker-entrypoint.sh postgres -c config_file=/tmp/postgres.conf
12
13
echo "Waiting for database to stop..."
14
-pg_ctl -D /var/lib/postgresql/data/pgdata -w stop
+while [ -f /var/lib/postgresql/data/pgdata/postmaster.pid ]; do
15
+ sleep 1
16
+done
17
18
rm /tmp/postgres.conf
0 commit comments