X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/17379ed7eb6e143667e53097f5ada570f051efd1..5b1602a521d3f6689f5988cdc2b25b74ff9fc1e1:/docker/api/setup-gitolite.sh.in diff --git a/docker/api/setup-gitolite.sh.in b/docker/api/setup-gitolite.sh.in index 2bd6fc281f..32413c99e7 100755 --- a/docker/api/setup-gitolite.sh.in +++ b/docker/api/setup-gitolite.sh.in @@ -13,10 +13,7 @@ su - git -c "mkdir -p ~/bin" su - git -c "git clone git://github.com/sitaramc/gitolite" su - git -c "gitolite/install -ln ~/bin" su - git -c "PATH=/home/git/bin:$PATH gitolite setup -pk ~git/root-authorized_keys.pub" - -# Make sure the repositories are created in such a way that they are readable -# by the api server -sed -i 's/0077/0022/g' /home/git/.gitolite.rc +install -o git -g git -m 600 /usr/local/arvados/config/.gitolite.rc /home/git/ # And make sure that the existing repos are equally readable, or the API server commit model will freak out... chmod 755 /home/git/repositories