Skip to content

Commit b5a17af

Browse files
authored
ensure parity between surrogate-bootstrap.sh & 91-log_cleanup.sh (#209)
1 parent b08d98c commit b5a17af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ebssurrogate/scripts/surrogate-bootstrap.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ function clean_system {
217217
mkdir -p /mnt/var/log/postgresql
218218
chroot /mnt /usr/bin/chown postgres:postgres /var/log/postgresql
219219

220+
# Setup wal-g logs
221+
mkdir /mnt/var/log/wal-g
222+
touch /mnt/var/log/wal-g/{backup-push.log,backup-fetch.log,wal-push.log,wal-fetch.log}
223+
chroot /mnt /usr/bin/chown -R postgres:postgres /var/log/wal-g
224+
chroot /mnt /usr/bin/chmod -R 0300 /var/log/wal-g
225+
220226
# unwanted files
221227
rm -rf /mnt/var/lib/apt/lists/*
222228
rm -rf /mnt/root/.cache

0 commit comments

Comments
 (0)