diff --git a/debian/postinst b/debian/postinst index d93b2c6915..7cd9a4f9f7 100755 --- a/debian/postinst +++ b/debian/postinst @@ -130,11 +130,13 @@ case "$1" in . /usr/lib/gitlab/scripts/grantpriv.sh # Remove Gemfile.lock if present - rm -f ${gitlab_app_root}/Gemfile.lock + rm -f ${gitlab_data_dir}/Gemfile.lock - # Create Gemfile.lock in /var/lib/gitlab + # Create Gemfile.lock and .secret in /var/lib/gitlab su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/Gemfile.lock" + su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/.secret" ln -s ${gitlab_data_dir}/Gemfile.lock ${gitlab_app_root}/Gemfile.lock + ln -s ${gitlab_data_dir}/.secret ${gitlab_app_root}/.secret echo "Verifying we have all required libraries..." su ${gitlab_user} -s /bin/sh -c 'bundle install --local'