From 3835bf1301f32719f3089dadd5308a9dd94d217d Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Thu, 3 Mar 2022 20:57:33 +0530 Subject: [PATCH] Install grpc and graphiql-rails using gem command --- debian/gitlab.postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/gitlab.postinst b/debian/gitlab.postinst index 619856b7b5..ff6112d2e2 100755 --- a/debian/gitlab.postinst +++ b/debian/gitlab.postinst @@ -60,6 +60,11 @@ test -f ${gitlab_common_conf} && . ${gitlab_common_conf} # Required for embedded gems export GEM_HOME=/var/lib/gitlab/.gem +export GEM_PATH=$(gem env gempath) + +# Updating these rubygem packages are complicated +runuser -u ${gitlab_user} -- sh -c "gem install -v 1.8.0 graphiql-rails" +runuser -u ${gitlab_user} -- sh -c "gem install -v 1.42 grpc" ####################################################################### # update Gemfile.lock and yarn.lock, always