You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
440 B
12 lines
440 B
3 years ago
|
#!/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
|
||
|
|