mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 15:13:20 +02:00
12 lines
440 B
Plaintext
12 lines
440 B
Plaintext
![]() |
#!/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
|
||
|
|