From 28921e29979c94563cb4927377f4e0c445045053 Mon Sep 17 00:00:00 2001 From: He Weiwei Date: Tue, 8 Jun 2021 06:41:12 +0000 Subject: [PATCH] fix: listen to 5443 when clean unexpected status of db Closes #15081 Signed-off-by: He Weiwei --- make/photon/db/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/photon/db/docker-entrypoint.sh b/make/photon/db/docker-entrypoint.sh index 71d7154df..ab3a1a958 100644 --- a/make/photon/db/docker-entrypoint.sh +++ b/make/photon/db/docker-entrypoint.sh @@ -34,7 +34,7 @@ if [ "$(ls -A $PGDATA)" ]; then # There seems to be a postmaster servicing the new cluster. # Please shutdown that postmaster and try again. # Failure, exiting - $PGBINOLD/pg_ctl -D "$PGDATAOLD" -w start + $PGBINOLD/pg_ctl -D "$PGDATAOLD" -w -o "-p 5433" start $PGBINOLD/pg_ctl -D "$PGDATAOLD" -m fast -w stop ./$CUR/upgrade.sh --old-bindir $PGBINOLD --old-datadir $PGDATAOLD --new-datadir $PGDATANEW # it needs to clean the $PGDATANEW on upgrade failure @@ -65,4 +65,4 @@ if [ $POSTGRES_MAX_CONNECTIONS -le 0 ] || [ $POSTGRES_MAX_CONNECTIONS -gt 262143 fi POSTGRES_PARAMETER="${POSTGRES_PARAMETER} -c max_connections=${POSTGRES_MAX_CONNECTIONS}" -exec postgres -D $PGDATANEW $POSTGRES_PARAMETER \ No newline at end of file +exec postgres -D $PGDATANEW $POSTGRES_PARAMETER