mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-14 12:20:10 +08:00
hub.docker.com now builds images from git tags.
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ if [[ ! -d ${PG_DATADIR} ]]; then
|
||||
# Setup streaming replication.
|
||||
sudo -Hu ${PG_USER} \
|
||||
PGPASSWORD=$REPLICATION_PASS ${PG_BINDIR}/pg_basebackup -D ${PG_DATADIR} \
|
||||
-h ${REPLICATION_HOST} -p ${REPLICATION_PORT} -U ${REPLICATION_USER} -w -v -P
|
||||
-h ${REPLICATION_HOST} -p ${REPLICATION_PORT} -U ${REPLICATION_USER} -X stream -w -v -P
|
||||
echo "Setting up hot standby configuration..."
|
||||
cat >> ${PG_CONFDIR}/postgresql.conf <<EOF
|
||||
hot_standby = on
|
||||
|
||||
Reference in New Issue
Block a user