Merge branch 'master' of vcs.fsf.org:fai-configs
[fai-configs.git] / scripts / IKIWIKI / 50-fix-perms.sh
1 #!/bin/bash
2
3 # Nuke permissions
4 $ROOTCMD chown -R root.www-data /var/www/html
5 $ROOTCMD chmod 750 /var/www/html
6 $ROOTCMD chown -R ikiwiki.www-data /var/www/html/wiki
7 $ROOTCMD find /var/www/html/wiki -type d -print0 | xargs -0 chmod 750
8 $ROOTCMD find /var/www/html/wiki -type f ! -name '*cgi' -print0 | xargs -0 chmod 640
9 $ROOTCMD chmod 6750 /var/www/html/wiki/ikiwiki.cgi
10 $ROOTCMD chown -R ikiwiki.www-data /srv/ikiwiki
11 $ROOTCMD find /srv/ikiwiki -type d -print0 | xargs -0 chmod 750
12 $ROOTCMD find /srv/ikiwiki -type f -print0 | xargs -0 chmod 640
13