Updated config for local development

This commit is contained in:
2026-08-13 17:38:17 +01:00
parent a3502b6735
commit 485b3fa80a
9 changed files with 70 additions and 35 deletions
@@ -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