Modification : cyclo-wiki : umask.
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Sun, 27 Apr 2014 16:18:54 +0000 (18:18 +0200)
committerJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Sun, 27 Apr 2014 16:19:29 +0000 (18:19 +0200)
etc/nginx/site.d/cyclo-wiki/local.sh

index 3697bf5..d7edf2d 100644 (file)
@@ -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