Skip to content

Commit 2f313a2

Browse files
author
Janaka Abeywardhana
committed
Add the post-receive hooks permission fix
Without this the status check fails when checking the post-receive hooks folder
1 parent 0ff7e37 commit 2f313a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/debian_ubuntu_aws.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ sudo su -l gitlab -c "cd gitlab && bundle exec rake gitlab:app:setup RAILS_ENV=p
7777
# Setup gitlab hooks
7878
sudo cp /home/gitlab/gitlab/lib/hooks/post-receive /home/git/.gitolite/hooks/common/post-receive
7979
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)