From 2e61a668a2d2776414a22ee063270369b25ef04c Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Thu, 18 Feb 2016 18:59:05 +0530 Subject: [PATCH] create .secret in /var/lib/gitlab --- debian/postinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'