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'