move Gemfile.lock to /var/lib/gitlab
This commit is contained in:
parent
b0967c9241
commit
a4e59c05d8
1 changed files with 5 additions and 1 deletions
6
debian/postinst
vendored
6
debian/postinst
vendored
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue