added perms fix to iwiki
authorLisa Marie Maginnis <lisam@fsf.org>
Mon, 26 Jan 2015 17:13:02 +0000 (12:13 -0500)
committerLisa Marie Maginnis <lisam@fsf.org>
Mon, 26 Jan 2015 17:13:02 +0000 (12:13 -0500)
scripts/IKIWIKI/50-fix-perms.sh [new file with mode: 0755]

diff --git a/scripts/IKIWIKI/50-fix-perms.sh b/scripts/IKIWIKI/50-fix-perms.sh
new file mode 100755 (executable)
index 0000000..8d5f7ec
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# Nuke permissions
+$ROOTCMD chown -R root.www-data /var/www/html
+$ROOTCMD chmod 750 /var/www/html
+$ROOTCMD chown -R ikiwiki.www-data /var/www/html/wiki
+$ROOTCMD find /var/www/html/wiki -type d -print0 | xargs -0 chmod 750
+$ROOTCMD find /var/www/html/wiki -type f ! -name '*cgi' | xargs -0 chmod 640
+$ROOTCMD chmod 6750 /var/www/html/wiki/ikiwiki.cgi