Skip to content

Commit f3cd09d

Browse files
authored
update permissions of wal-g related files (#190)
1 parent 18c3f79 commit f3cd09d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ansible/tasks/setup-wal-g.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@
8686
state: directory
8787
owner: wal-g
8888
group: wal-g
89-
mode: '0760'
89+
mode: '0770'
9090

9191
- name: Create /etc/wal-g/config.json
9292
file:
9393
path: /etc/wal-g/config.json
9494
state: touch
9595
owner: wal-g
9696
group: wal-g
97-
mode: '0760'
97+
mode: '0664'
9898

9999
- name: Move custom wal-g.conf file to /etc/postgresql-custom/wal-g.conf
100100
template:

scripts/91-log_cleanup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ chown postgres:postgres /var/log/postgresql
1616
mkdir /var/log/wal-g
1717
cd /var/log/wal-g
1818
touch backup-push.log backup-fetch.log wal-push.log wal-fetch.log
19-
chown -R wal-g:wal-g /var/log/wal-g
20-
chmod -R 0700 /var/log/wal-g
19+
chown -R postgres:postgres /var/log/wal-g
20+
chmod -R 0300 /var/log/wal-g

0 commit comments

Comments
 (0)