Skip to content

Commit 4ffe3e3

Browse files
committed
fix: create the /var/log/postgresql directory towards the end of the build
1 parent 6baff5b commit 4ffe3e3

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

ansible/tasks/setup-postgres.yml

-8
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@
103103
owner: postgres
104104
group: postgres
105105

106-
- name: Create logs dir
107-
become: yes
108-
file:
109-
path: /var/log/postgresql
110-
state: directory
111-
owner: postgres
112-
group: postgres
113-
114106
# Move Postgres configuration files into /etc/postgresql
115107
# Add postgresql.conf
116108
- name: import postgresql.conf

scripts/91-log_cleanup.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ rm -rf /var/log/*
88
touch /var/log/auth.log
99

1010
touch /var/log/pgbouncer.log
11-
chown postgres:postgres /var/log/pgbouncer.log
11+
mkdir /var/log/postgresql
12+
chown postgres:postgres /var/log/pgbouncer.log /var/log/postgresql

0 commit comments

Comments
 (0)