mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2026-08-17 00:42:49 +01:00
Updated config for local development
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Configure postgres to archive WAL logs via wal-g
|
||||
echo "archive_mode = on" >> "$PGDATA/postgresql.conf"
|
||||
echo "archive_command = 'wal-g wal-push %p'" >> "$PGDATA/postgresql.conf"
|
||||
echo "archive_timeout = 60" >> "$PGDATA/postgresql.conf"
|
||||
if [ "$ENABLE_WALG" = "true" ]; then
|
||||
echo "archive_mode = on" >> "$PGDATA/postgresql.conf"
|
||||
echo "archive_command = 'wal-g wal-push %p'" >> "$PGDATA/postgresql.conf"
|
||||
echo "archive_timeout = 60" >> "$PGDATA/postgresql.conf"
|
||||
else
|
||||
echo "archive_mode = off" >> "$PGDATA/postgresql.conf"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user