install danger gem from rubygems.org
We need danger < 9 (dep of gitlab-dangerfiles) inorder to avoid octokit conflict
This commit is contained in:
parent
abb882aa7b
commit
e61b5c4f28
1 changed files with 2 additions and 1 deletions
3
debian/gitlab.postinst
vendored
3
debian/gitlab.postinst
vendored
|
@ -66,6 +66,7 @@ export GEM_PATH=$(gem env gempath)
|
|||
# Updating these rubygem packages are complicated
|
||||
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i -v 1.8.0 "^graphiql-rails$" >/dev/null; then gem install -v 1.8.0 graphiql-rails; fi"
|
||||
# gitlab-dangerfiles is required in Rakefile and has many dependencies
|
||||
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i -v '~> 8.4' "^danger$" >/dev/null; then gem install -v '~> 8.4' danger; fi"
|
||||
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i "^gitlab-dangerfiles$" >/dev/null; then gem install gitlab-dangerfiles; fi"
|
||||
|
||||
# TODO: Update packages for these gems
|
||||
|
@ -115,7 +116,7 @@ case "$1" in
|
|||
configure)
|
||||
gitlab_builds_log=${gitlab_log_dir}/builds
|
||||
gitlab_repo_path=${gitlab_data_dir}/repositories
|
||||
gitlab_uploads_path=${gitlab_data_dir}/public/uploads
|
||||
gitlab_uploads_path=${gitlab_data_dir}/public/upload
|
||||
|
||||
# Create directories and change ownership
|
||||
echo "Creating runtime directories for gitlab..."
|
||||
|
|
Loading…
Reference in a new issue