Remove rubygems.org version of gitlab-labkit

This commit is contained in:
Pirate Praveen 2023-03-06 16:26:09 +05:30
parent 02edd76c73
commit 48a7cd8248
No known key found for this signature in database
GPG key ID: 8F53E0193B294B75

View file

@ -88,6 +88,11 @@ runuser -u ${gitlab_user} -- sh -c "if ! gem list -i -v 0.53.0 "^google-api-clie
# Uninstall rack 3.x # Uninstall rack 3.x
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i -v '~>3.0' "^rack$" >/dev/null; then gem uninstall -v '~>3.0' rack; fi" runuser -u ${gitlab_user} -- sh -c "if ! gem list -i -v '~>3.0' "^rack$" >/dev/null; then gem uninstall -v '~>3.0' rack; fi"
# Uninstall gitlab-labkit since it require jaeger-client '~> 1.1.0'
if [ "$(gem which gitlab-labkit)" = "/var/lib/gitlab/.gem/gems/gitlab-labkit-0.29.0/lib/gitlab-labkit.rb" ]; then
runuser -u ${gitlab_user} -- sh -c "gem uninstall -v '~> 0.29.0' gitlab-labkit"
fi
####################################################################### #######################################################################
# update Gemfile.lock and yarn.lock, always # update Gemfile.lock and yarn.lock, always
####################################################################### #######################################################################