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.
 
 
 
 
 
 

16 lines
913 B

#!/bin/sh
restorecon -R {{ dokuwiki_root_dir }}
chown root:root {{ dokuwiki_root_dir }}
chmod 700 {{ dokuwiki_root_dir }}
setfacl -k -b {{ dokuwiki_root_dir }}
setfacl -m u:{{ dokuwiki_php_user | default('apache') }}:rx,u:{{ httpd_user | default('apache') }}:rx {{ dokuwiki_root_dir }}
chown -R root:root {{ dokuwiki_root_dir }}/web
chown -R {{ dokuwiki_php_user | default('apache') }} {{ dokuwiki_root_dir }}/web/lib/{plugins,tpl}
chown -R {{ dokuwiki_php_user }} {{ dokuwiki_root_dir }}/{tmp,sessions,cache,data}
chmod 700 {{ dokuwiki_root_dir }}/{tmp,sessions,cache,data}
find {{ dokuwiki_root_dir }}/web -type f -exec chmod 644 "{}" \;
find {{ dokuwiki_root_dir }}/web -type d -exec chmod 755 "{}" \;
chown -R :{{ dokuwiki_php_user }} {{ dokuwiki_root_dir }}/web/conf
find {{ dokuwiki_root_dir }}/web/conf -type f -exec chmod 660 "{}" \;
find {{ dokuwiki_root_dir }}/web/conf -type d -exec chmod 770 "{}" \;