Ansible roles
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.
 
 
 
 
 
 

17 lines
790 B

#!/bin/sh
restorecon -R {{ glpi_root_dir }}
chown root:root {{ glpi_root_dir }}
chmod 700 {{ glpi_root_dir }}
chown root:root {{ glpi_root_dir }}/{meta,db_dumps}
chmod 700 {{ glpi_root_dir }}/{meta,db_dumps}
setfacl -k -b {{ glpi_root_dir }}
setfacl -m u:{{ glpi_php_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:rx {{ glpi_root_dir }}
chown -R root:root {{ glpi_root_dir }}/web
chown -R {{ glpi_php_user }} {{ glpi_root_dir }}/{tmp,sessions,data}
chmod 700 {{ glpi_root_dir }}/{tmp,sessions,data}
find {{ glpi_root_dir }}/web -type f -exec chmod 644 "{}" \;
find {{ glpi_root_dir }}/web -type d -exec chmod 755 "{}" \;
chown -R :{{ glpi_php_user }} {{ glpi_root_dir }}/web/config
chmod 770 {{ glpi_root_dir }}/web/config
chmod 660 {{ glpi_root_dir }}/web/config/*