Skip to content

Commit 17e5567

Browse files
Lakshmipathidarora
authored andcommitted
fix: Keep auditd log directory
Signed-off-by: Lakshmipathi <lakshmi@supabase.io>
1 parent 6587eca commit 17e5567

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ebssurrogate/scripts/surrogate-bootstrap.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ function clean_system {
238238
chroot /mnt /usr/bin/chown -R postgres:postgres /var/log/wal-g
239239
chroot /mnt /usr/bin/chmod -R 0300 /var/log/wal-g
240240

241+
# audit logs directory for apparmor
242+
mkdir /mnt/var/log/audit
243+
241244
# unwanted files
242245
rm -rf /mnt/var/lib/apt/lists/*
243246
rm -rf /mnt/root/.cache

scripts/91-log_cleanup.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ touch backup-push.log backup-fetch.log wal-push.log wal-fetch.log
1919
chown -R postgres:postgres /var/log/wal-g
2020
chmod -R 0300 /var/log/wal-g
2121

22-
# audit logs directory for apparmor
23-
mkdir /var/log/audit

0 commit comments

Comments
 (0)