mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
19
roles/bookstack/templates/perms.sh.j2
Normal file
19
roles/bookstack/templates/perms.sh.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
restorecon -R {{ bookstack_root_dir }}
|
||||
chown root:root {{ bookstack_root_dir }}
|
||||
chmod 700 {{ bookstack_root_dir }}
|
||||
setfacl -R -k -b {{ bookstack_root_dir }}
|
||||
setfacl -m u:{{ bookstack_php_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:x {{ bookstack_root_dir }}
|
||||
find {{ bookstack_root_dir }}/app -type f -exec chmod 644 "{}" \;
|
||||
find {{ bookstack_root_dir }}/app -type d -exec chmod 755 "{}" \;
|
||||
chown root:{{ bookstack_php_user }} {{ bookstack_root_dir }}/app/.env
|
||||
chmod 640 {{ bookstack_root_dir }}/app/.env
|
||||
chown -R {{ bookstack_php_user }} {{ bookstack_root_dir }}/app/bootstrap/cache
|
||||
chmod 700 {{ bookstack_root_dir }}/app/bootstrap/cache
|
||||
chown -R {{ bookstack_php_user }} {{ bookstack_root_dir }}/data
|
||||
chmod 700 {{ bookstack_root_dir }}/data
|
||||
setfacl -R -m u:{{ httpd_user | default('apache') }}:rx {{ bookstack_root_dir }}/app/public
|
||||
setfacl -m u:{{ httpd_user | default('apache') }}:x {{ bookstack_root_dir }}/data/
|
||||
setfacl -R -m u:{{ httpd_user | default('apache') }}:rx {{ bookstack_root_dir }}/data/uploads
|
||||
find {{ bookstack_root_dir }} -name .htaccess -exec chmod 644 "{}" \;
|
Reference in New Issue
Block a user