installing console-common uninstalls cryptsetup
[fai-configs.git] / scripts / IKIWIKI / 50-fix-perms.sh
CommitLineData
cd67bb75
LMM
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
a195f8b9 8$ROOTCMD find /var/www/html/wiki -type f ! -name '*cgi' -print0 | xargs -0 chmod 640
cd67bb75 9$ROOTCMD chmod 6750 /var/www/html/wiki/ikiwiki.cgi
37e97edb 10$ROOTCMD chown -R ikiwiki.www-data /srv/ikiwiki
a195f8b9
LMM
11$ROOTCMD find /srv/ikiwiki -type d -print0 | xargs -0 chmod 750
12$ROOTCMD find /srv/ikiwiki -type f -print0 | xargs -0 chmod 640
37e97edb 13