Move gem install to start of postinst, before regenerating Gemfile.lock

This commit is contained in:
Pirate Praveen 2021-06-21 14:09:06 +05:30
parent 27a7b7ef1f
commit 1bcb4acac8
2 changed files with 5 additions and 4 deletions

View file

@ -61,6 +61,11 @@ export GEM_HOME=/var/lib/gitlab/.gem
# Read gitlab_user from gitlab-common.conf
test -f ${gitlab_common_conf} && . ${gitlab_common_conf}
# Workaround for #966653
/usr/bin/gem install -v 1.30.2 grpc
# Workaround for #989774
/usr/bin/gem install -v 3.17.1 google-protobuf
#######################################################################
# update Gemfile.lock and yarn.lock, always
#######################################################################

View file

@ -8,10 +8,6 @@ export DB RAILS_ENV
cd /usr/share/gitlab
# Workaround for #966653
/usr/bin/gem install -v 1.30.2 grpc
# Workaround for #989774
/usr/bin/gem install -v 3.17.1 google-protobuf
# Remove all lines from Gemfile.lock
runuser -u ${gitlab_user} -- sh -c "touch ${gitlab_data_dir}/Gemfile.lock && \
truncate -s 0 ${gitlab_data_dir}/Gemfile.lock"