mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-07-04 17:55:31 +08:00
recovery.conf can exist only on a slave node
It's existence otherwise cause issues while replication users, as such the `configure_recovery` function is promoted higher in the initialization sequence.
This commit is contained in:
+1
-1
@@ -21,13 +21,13 @@ if [[ -z ${1} ]]; then
|
||||
create_rundir
|
||||
|
||||
initialize_database
|
||||
configure_recovery
|
||||
configure_ssl
|
||||
trust_localnet
|
||||
|
||||
create_user
|
||||
create_database
|
||||
create_replication_user
|
||||
configure_recovery
|
||||
|
||||
echo "Starting PostgreSQL ${PG_VERSION}..."
|
||||
exec start-stop-daemon --start --chuid ${PG_USER}:${PG_USER} \
|
||||
|
||||
Reference in New Issue
Block a user