mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
11
roles/akeneo_pim/templates/perms.sh.j2
Normal file
11
roles/akeneo_pim/templates/perms.sh.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
restorecon -R {{ pim_root_dir }}
|
||||
chown root:root {{ pim_root_dir }}
|
||||
chmod 700 {{ pim_root_dir }}
|
||||
setfacl -R -k -b {{ pim_root_dir }}
|
||||
setfacl -m u:{{ pim_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:x {{ pim_root_dir }}
|
||||
find {{ pim_root_dir }}/app -type f -exec chmod 644 "{}" \;
|
||||
find {{ pim_root_dir }}/app -type d -exec chmod 755 "{}" \;
|
||||
chown -R {{ pim_user }}:{{ pim_user }} {{ pim_root_dir }}/app
|
||||
|
Reference in New Issue
Block a user