From 48a7cd824843932425791c260ebeb45577cc499d Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Mon, 6 Mar 2023 16:26:09 +0530 Subject: [PATCH] Remove rubygems.org version of gitlab-labkit --- debian/gitlab.postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/gitlab.postinst b/debian/gitlab.postinst index e9f2690822..18a9f48722 100755 --- a/debian/gitlab.postinst +++ b/debian/gitlab.postinst @@ -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 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 #######################################################################