kopia lustrzana https://github.com/kartoza/docker-postgis
16 wiersze
349 B
Bash
16 wiersze
349 B
Bash
#!/usr/bin/env bash
|
|
|
|
source /env-data.sh
|
|
|
|
# This script will setup necessary configuration to enable replications
|
|
|
|
# Refresh configuration in case environment settings changed.
|
|
cat $CONF.template > $CONF
|
|
|
|
cat >> $CONF <<EOF
|
|
wal_level = hot_standby
|
|
max_wal_senders = $PG_MAX_WAL_SENDERS
|
|
wal_keep_segments = $PG_WAL_KEEP_SEGMENTS
|
|
hot_standby = on
|
|
EOF
|