mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 08:36:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
16
roles/phpmyadmin/templates/perms.sh.j2
Normal file
16
roles/phpmyadmin/templates/perms.sh.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
restorecon -R {{ pma_root_dir }}
|
||||
chown root:root {{ pma_root_dir }}
|
||||
chmod 700 {{ pma_root_dir }}
|
||||
chown -R root:root {{ pma_root_dir }}/meta
|
||||
chmod 700 {{ pma_root_dir }}/meta
|
||||
setfacl -R -k -b {{ pma_root_dir }}
|
||||
setfacl -m u:{{ pma_php_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:rx {{ pma_root_dir }}
|
||||
chown -R root:root {{ pma_root_dir }}/web
|
||||
chown -R {{ pma_php_user }} {{ pma_root_dir }}/{tmp,sessions,cache}
|
||||
chmod 700 {{ pma_root_dir }}/{tmp,sessions,cache}
|
||||
find {{ pma_root_dir }}/web -type f -exec chmod 644 "{}" \;
|
||||
find {{ pma_root_dir }}/web -type d -exec chmod 755 "{}" \;
|
||||
chown root:{{ pma_php_user }} {{ pma_root_dir }}/web/{sso.php,config.inc.php}
|
||||
chmod 640 {{ pma_root_dir }}/web/{sso.php,config.inc.php}
|
Reference in New Issue
Block a user