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 #######################################################################