mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 10:38:00 +01:00
fix: listen to 5443 when clean unexpected status of db
Closes #15081 Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
parent
1f9ab2b735
commit
28921e2997
@ -34,7 +34,7 @@ if [ "$(ls -A $PGDATA)" ]; then
|
|||||||
# There seems to be a postmaster servicing the new cluster.
|
# There seems to be a postmaster servicing the new cluster.
|
||||||
# Please shutdown that postmaster and try again.
|
# Please shutdown that postmaster and try again.
|
||||||
# Failure, exiting
|
# 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
|
$PGBINOLD/pg_ctl -D "$PGDATAOLD" -m fast -w stop
|
||||||
./$CUR/upgrade.sh --old-bindir $PGBINOLD --old-datadir $PGDATAOLD --new-datadir $PGDATANEW
|
./$CUR/upgrade.sh --old-bindir $PGBINOLD --old-datadir $PGDATAOLD --new-datadir $PGDATANEW
|
||||||
# it needs to clean the $PGDATANEW on upgrade failure
|
# 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
|
fi
|
||||||
|
|
||||||
POSTGRES_PARAMETER="${POSTGRES_PARAMETER} -c max_connections=${POSTGRES_MAX_CONNECTIONS}"
|
POSTGRES_PARAMETER="${POSTGRES_PARAMETER} -c max_connections=${POSTGRES_MAX_CONNECTIONS}"
|
||||||
exec postgres -D $PGDATANEW $POSTGRES_PARAMETER
|
exec postgres -D $PGDATANEW $POSTGRES_PARAMETER
|
||||||
|
Loading…
Reference in New Issue
Block a user