mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2026-11-25 17:43:20 -06:00
upgraded to support new recovery paradigm in postgres 12; won't work on 9.6 anymore
This commit is contained in:
1 parent
83459c3eee
commit
ceb542e680
3 files changed
+6
-3
No files matched your search
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user