Skip to content

Commit 0ff7e37

Browse files
author
Janaka Abeywardhana
committed
Fix the Gitlab hooks setup
Incorrect destination path. Copied the correct one from install.md
1 parent f18dab3 commit 0ff7e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/debian_ubuntu_aws.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ 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
8080

8181
# Set the first occurrence of host in the Gitlab config to the publicly available domain name
8282
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)