mirror of
https://github.com/jlengrand/gitlab-recipes.git
synced 2026-03-10 08:11:17 +00:00
Fix the Gitlab hooks setup
Incorrect destination path. Copied the correct one from install.md
This commit is contained in:
@@ -75,8 +75,8 @@ sudo su -l gitlab -c "cd gitlab && bundle install --without development test --d
|
||||
sudo su -l gitlab -c "cd gitlab && bundle exec rake gitlab:app:setup RAILS_ENV=production"
|
||||
|
||||
# Setup gitlab hooks
|
||||
sudo cp /home/gitlab/gitlab/lib/hooks/post-receive /home/git/share/gitolite/hooks/common/post-receive
|
||||
sudo chown git:git /home/git/share/gitolite/hooks/common/post-receive
|
||||
sudo cp /home/gitlab/gitlab/lib/hooks/post-receive /home/git/.gitolite/hooks/common/post-receive
|
||||
sudo chown git:git /home/git/.gitolite/hooks/common/post-receive
|
||||
|
||||
# Set the first occurrence of host in the Gitlab config to the publicly available domain name
|
||||
sudo sed -i '0,/host/s/localhost/'`wget -qO- http://instance-data/latest/meta-data/public-hostname`'/' /home/gitlab/gitlab/config/gitlab.yml
|
||||
|
||||
Reference in New Issue
Block a user