mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-10 15:23:27 +02:00
12 lines
440 B
Django/Jinja
12 lines
440 B
Django/Jinja
#!/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
|
|
|