8d5f7ecc470bc066c2be02fe05572f08464efa35
[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' | xargs -0 chmod 640
9 $ROOTCMD chmod 6750 /var/www/html/wiki/ikiwiki.cgi