mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2022-03-07 16:00
This commit is contained in:
21
roles/unmaintained/matomo/templates/perms.sh.j2
Normal file
21
roles/unmaintained/matomo/templates/perms.sh.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
restorecon -R {{ matomo_root_dir }}
|
||||
chown root:root {{ matomo_root_dir }}
|
||||
chmod 700 {{ matomo_root_dir }}
|
||||
setfacl -k -b {{ matomo_root_dir }}
|
||||
setfacl -m u:{{ matomo_php_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:rx {{ matomo_root_dir }}
|
||||
chown -R root:root {{ matomo_root_dir }}/web
|
||||
chown -R {{ matomo_php_user | default('apache') }} {{ matomo_root_dir }}/web/plugins
|
||||
chown {{ matomo_php_user | default('apache') }} {{ matomo_root_dir }}/web/matomo.js
|
||||
find {{ matomo_root_dir }}/web -type f -exec chmod 644 "{}" \;
|
||||
find {{ matomo_root_dir }}/web -type d -exec chmod 755 "{}" \;
|
||||
chown -R :{{ matomo_php_user }} {{ matomo_root_dir }}/web/{config,tmp,misc}/
|
||||
find {{ matomo_root_dir }}/web/{config,tmp,misc} -type f -exec chmod 660 "{}" \;
|
||||
find {{ matomo_root_dir }}/web/{config,tmp,misc} -type d -exec chmod 770 "{}" \;
|
||||
chown -R {{ matomo_php_user }} {{ matomo_root_dir }}/tmp/*
|
||||
find {{ matomo_root_dir }}/tmp/ -type f -exec chmod 660 "{}" \;
|
||||
find {{ matomo_root_dir }}/tmp/ -type d -exec chmod 770 "{}" \;
|
||||
chown :{{ matomo_php_user }} {{ matomo_root_dir }}/web/piwik.js
|
||||
chmod 664 {{ matomo_root_dir }}/web/piwik.js
|
||||
|
Reference in New Issue
Block a user