move Gemfile.lock to /var/lib/gitlab

This commit is contained in:
Praveen Arimbrathodiyil 2016-02-18 18:39:34 +05:30
parent b0967c9241
commit a4e59c05d8

6
debian/postinst vendored
View file

@ -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'