setup-wale.sh 314 Bytes
Newer Older
PICHOU Kyâne's avatar
PICHOU Kyâne committed
1
2
#!/bin/bash

PICHOU Kyâne's avatar
PICHOU Kyâne committed
3
# wal-e specific configuration
PICHOU Kyâne's avatar
PICHOU Kyâne committed
4
5
echo "wal_level = $WAL_LEVEL" >> $PGDATA/postgresql.conf
echo "archive_mode = $ARCHIVE_MODE" >> $PGDATA/postgresql.conf
PICHOU Kyâne's avatar
PICHOU Kyâne committed
6
echo "archive_command = '/usr/bin/wal-e wal-push %p'" >> $PGDATA/postgresql.conf
PICHOU Kyâne's avatar
PICHOU Kyâne committed
7
echo "archive_timeout = $ARCHIVE_TIMEOUT" >> $PGDATA/postgresql.conf