From 30a41d2631b09b4cf2361b090f8e490b11c11c9e Mon Sep 17 00:00:00 2001 From: Patrick Ballard Date: Thu, 21 Sep 2023 10:43:05 -0400 Subject: [PATCH] bump AMI version --- common.vars.pkr.hcl | 2 +- ebssurrogate/scripts/surrogate-bootstrap.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common.vars.pkr.hcl b/common.vars.pkr.hcl index b69a321e7..4842ba298 100644 --- a/common.vars.pkr.hcl +++ b/common.vars.pkr.hcl @@ -1 +1 @@ -postgres-version = "15.1.0.118" +postgres-version = "15.1.0.118.1" diff --git a/ebssurrogate/scripts/surrogate-bootstrap.sh b/ebssurrogate/scripts/surrogate-bootstrap.sh index 95491f832..60d154d96 100755 --- a/ebssurrogate/scripts/surrogate-bootstrap.sh +++ b/ebssurrogate/scripts/surrogate-bootstrap.sh @@ -259,6 +259,9 @@ function clean_system { mkdir /mnt/var/log/wal-g touch /mnt/var/log/wal-g/{backup-push.log,backup-fetch.log,wal-push.log,wal-fetch.log,pitr.log} + #Creatre Sysstat directory for SAR + mkdir /mnt/var/log/sysstat + if [ -f /usr/bin/chown ]; then chroot /mnt /usr/bin/chown -R postgres:postgres /var/log/wal-g chroot /mnt /usr/bin/chmod -R 0300 /var/log/wal-g