Fix permissions after make.

news-update
Michael Spang 16 years ago
parent 782fc815fd
commit 4c9564a477
  1. 3
      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

Loading…
Cancel
Save