From 4c9564a477806f3e9fc8e6311a3b6814b7907fc9 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Sat, 30 Jun 2007 19:06:12 -0400 Subject: [PATCH] Fix permissions after make. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 9461730..79a0586 100755 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ SUBDIRS = about events docs office news users clubs media # the following two rules are there so cow gets built first. cow-first: noroot events.ics recurse-cow books.xml members.xml menu.xml all + find ! -regex '.*/\..*' -type f ! -perm -0664 -print0 | xargs -r0 chmod u=rwX,g=rwX,o=rX || true + find ! -regex '.*/\..*' -type d ! -perm 2775 -print0 | xargs -r0 chmod 2775 || true + find ! -regex '.*/\..*' -type d ! -group www -print0 | xargs -r0 chgrp www || true noroot: if test $$UID = 0; then echo "don't build as root!"; exit 1; fi