From 74d498596b4f77addde764b0b1ebfb2ccfbecebf Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Tue, 12 Mar 2019 20:43:23 +0530 Subject: [PATCH] Set GEM_PATH for using embedded gems --- debian/gitlab.postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/gitlab.postinst b/debian/gitlab.postinst index eacd940c02..3027588f27 100755 --- a/debian/gitlab.postinst +++ b/debian/gitlab.postinst @@ -50,6 +50,9 @@ cp ${gitlab_debian_conf_example} ${gitlab_debian_conf_private} test -f ${gitlab_debian_conf} && . ${gitlab_debian_conf} export DB RAILS_ENV +# Required for embedded gems +export GEM_HOME=/var/lib/gitlab/.gem + # Read default values (we cannot do this before gitlab-debian.conf is exported # as we want to override variables set by gitlab-debian.conf in earlier gitlab # versions with gitlab-debian.defaults)