mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-08 07:25:14 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
13
roles/unmaintained/ttrss/templates/perms.sh.j2
Normal file
13
roles/unmaintained/ttrss/templates/perms.sh.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
restorecon -R {{ ttrss_root_dir }}
|
||||
chown -R root:root {{ ttrss_root_dir }}/meta
|
||||
chmod 700 {{ ttrss_root_dir }}/meta
|
||||
chown -R {{ ttrss_php_user }}:apache {{ ttrss_root_dir }}/{cache,data}
|
||||
chmod 750 {{ ttrss_root_dir }}/{cache,data}
|
||||
chmod 700 {{ ttrss_root_dir }}
|
||||
chown -R {{ ttrss_php_user }} {{ ttrss_root_dir }}/{sessions,tmp}
|
||||
chmod 700 {{ ttrss_root_dir }}/{sessions,tmp}
|
||||
setfacl -k -b {{ ttrss_root_dir }}
|
||||
setfacl -m u:{{ ttrss_php_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:rx {{ ttrss_root_dir }}
|
||||
restorecon -R {{ ttrss_root_dir }}
|
Reference in New Issue
Block a user