Skip to content

Commit 6f4158a

Browse files
committed
Merge pull request #15 from janaka/patch-1
Fix the Gitlab hooks setup
2 parents 5190271 + 2f313a2 commit 6f4158a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

install/debian_ubuntu_aws.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ sudo su -l gitlab -c "cd gitlab && bundle install --without development test --d
7575
sudo su -l gitlab -c "cd gitlab && bundle exec rake gitlab:app:setup RAILS_ENV=production"
7676

7777
# Setup gitlab hooks
78-
sudo cp /home/gitlab/gitlab/lib/hooks/post-receive /home/git/share/gitolite/hooks/common/post-receive
79-
sudo chown git:git /home/git/share/gitolite/hooks/common/post-receive
78+
sudo cp /home/gitlab/gitlab/lib/hooks/post-receive /home/git/.gitolite/hooks/common/post-receive
79+
sudo chown git:git /home/git/.gitolite/hooks/common/post-receive
80+
sudo chmod g+rwx /home/git/.gitolite # sort out permissions https://github.com/gitlabhq/gitlabhq/issues/1543
81+
sudo usermod -g git gitlab
82+
8083

8184
# Set the first occurrence of host in the Gitlab config to the publicly available domain name
8285
sudo sed -i '0,/host/s/localhost/'`wget -qO- http://instance-data/latest/meta-data/public-hostname`'/' /home/gitlab/gitlab/config/gitlab.yml

0 commit comments

Comments
 (0)