upgraded to support new recovery paradigm in postgres 12; won't work on 9.6 anymore

This commit is contained in:
Brad Koehn committed 2020-02-16 08:34:49 -06:00
1 parent 83459c3eee
commit ceb542e680
3 files changed
+6 -3

No files matched your search

+3 -1
View File
@@ -15,7 +15,9 @@ fi
wal-g backup-fetch $PGDATA LATEST
# enable recovery mode, disable remote connections and archive mode
cp /wal-g/recovery.conf $PGDATA/
touch $PGDATA/recovery.signal
cp $PGDATA/postgresql.conf $PGDATA/postgresql.conf.orig
cat /wal-g/recovery.conf >> $PGDATA/postgresql.conf
mv $PGDATA/pg_hba.conf $PGDATA/pg_hba.conf.orig
cp /wal-g/pg_hba.conf $PGDATA/pg_hba.conf
sed -i -e 's/^archive_mode = on/archive_mode = off/' $PGDATA/postgresql.conf