From 29b16fdc242f25e720991f1b4ec5da493e08b8e3 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Sun, 27 Apr 2014 18:18:54 +0200 Subject: [PATCH] Modification : cyclo-wiki : umask. --- etc/nginx/site.d/cyclo-wiki/local.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/nginx/site.d/cyclo-wiki/local.sh b/etc/nginx/site.d/cyclo-wiki/local.sh index 3697bf5..d7edf2d 100644 --- a/etc/nginx/site.d/cyclo-wiki/local.sh +++ b/etc/nginx/site.d/cyclo-wiki/local.sh @@ -46,7 +46,7 @@ sudo install -m 771 -o git -g git /dev/stdin \ # "E: Failed to change to directory '...': Permission denied" cd / - /home/git/hooks/cyclo/cyclo-3615/post-update.ikiwiki & + umask 002 exec /home/git/hooks/cyclo/$site/post-update.ikiwiki EOF @@ -57,12 +57,12 @@ if sudo test -d /home/cyclo/var/ikiwiki/"$site"/src/.git git submodule update --recursive --init' else sudo -u wiki-"$site" sh -$-c ' \ - umask 007 && + umask 002 && git clone \ git@localhost:cyclowiki \ /home/cyclo/var/ikiwiki/'"'$site'"'/src && cd /home/cyclo/var/ikiwiki/'"'$site'"'/src && - git config core.sharedRepository all && + git config core.sharedRepository 0664 && git submodule update --recursive --init ' fi -- 2.20.1