Skip to content

Commit

Permalink
Adjust permissions for the distribute /etc/postgresql.conf so `postgr…
Browse files Browse the repository at this point in the history
…es` user

can read it
- Refs LemmyNet#183
- Refs comment LemmyNet#183 (comment)
  • Loading branch information
codyro authored and ticoombs committed Oct 23, 2023
1 parent b518a11 commit 7b856a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lemmy-almalinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@
# src: "files/{{ domain }}/customPostgresql.conf"
src: "inventory/host_vars/{{ domain }}/customPostgresql.conf"
dest: "{{ lemmy_base_dir }}/{{ domain }}/customPostgresql.conf"
mode: "0600"
owner: "1000" # Match UID in container
group: "1000" # Match GID in container
mode: "0644"
owner: root
group: root
tags:
- configs
- postgresql
Expand Down
6 changes: 3 additions & 3 deletions lemmy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@
ansible.builtin.template:
src: "inventory/host_vars/{{ domain }}/customPostgresql.conf"
dest: "{{ lemmy_base_dir }}/{{ domain }}/customPostgresql.conf"
mode: "0600"
owner: "1000"
group: "1000"
mode: "0644"
owner: root
group: root

- name: Enable and start docker service
ansible.builtin.systemd:
Expand Down

0 comments on commit 7b856a4

Please sign in to comment.