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:
Sameer Naik
2015-11-28 21:06:51 +05:30
parent 22c969c88c
commit a1ca18b780
2 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -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} \