From a4e59c05d8159036b156339097e45bab6a7ccdf3 Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Thu, 18 Feb 2016 18:39:34 +0530 Subject: [PATCH] move Gemfile.lock to /var/lib/gitlab --- debian/postinst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 7cee1492a6..d93b2c6915 100755 --- a/debian/postinst +++ b/debian/postinst @@ -130,7 +130,11 @@ case "$1" in . /usr/lib/gitlab/scripts/grantpriv.sh # Remove Gemfile.lock if present - rm -f ${gtilab_home}/Gemfile.lock + rm -f ${gitlab_app_root}/Gemfile.lock + + # Create Gemfile.lock in /var/lib/gitlab + su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/Gemfile.lock" + ln -s ${gitlab_data_dir}/Gemfile.lock ${gitlab_app_root}/Gemfile.lock echo "Verifying we have all required libraries..." su ${gitlab_user} -s /bin/sh -c 'bundle install --local'