From b123029dca1edb0edbf7a89c654a2c993082c8bc Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 18 Jun 2021 15:00:06 +0200 Subject: [PATCH] Update to 2021-06-18 15:00 --- roles/ampache/templates/perms.sh.j2 | 2 +- roles/framadate/templates/perms.sh.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ampache/templates/perms.sh.j2 b/roles/ampache/templates/perms.sh.j2 index 7e87668..6a7e4e3 100644 --- a/roles/ampache/templates/perms.sh.j2 +++ b/roles/ampache/templates/perms.sh.j2 @@ -6,7 +6,7 @@ chmod 700 {{ ampache_root_dir }} setfacl -k -b {{ ampache_root_dir }} setfacl -m u:{{ ampache_php_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:rx {{ ampache_root_dir }} chown -R root:root {{ ampache_root_dir }}/web -chown apache-ampache {{ ampache_root_dir }}/data +chown {{ ampache_php_user }} {{ ampache_root_dir }}/data chown -R {{ ampache_php_user }} {{ ampache_root_dir }}/{tmp,sessions,logs,data/metadata} chmod 700 {{ ampache_root_dir }}/{tmp,sessions,logs,data} find {{ ampache_root_dir }}/web -type f -exec chmod 644 "{}" \; diff --git a/roles/framadate/templates/perms.sh.j2 b/roles/framadate/templates/perms.sh.j2 index 4eeb3d2..6dda36c 100644 --- a/roles/framadate/templates/perms.sh.j2 +++ b/roles/framadate/templates/perms.sh.j2 @@ -3,7 +3,7 @@ restorecon -R {{ framadate_root_dir }} chown root:root {{ framadate_root_dir }} chmod 700 {{ framadate_root_dir }} -setfacl -x -b {{ framadate_root_dir }} +setfacl -k -b {{ framadate_root_dir }} setfacl -m u:{{ framadate_php_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:rx {{ framadate_root_dir }} chown -R root:root {{ framadate_root_dir }}/web chown -R {{ framadate_php_user }} {{ framadate_root_dir }}/{tmp,sessions,logs}