remove Gemfile.lock if found

This commit is contained in:
Praveen Arimbrathodiyil 2016-02-04 14:49:51 +05:30
parent ac540fdb5a
commit aff3e6f134
2 changed files with 6 additions and 2 deletions

3
debian/changelog vendored
View file

@ -1,6 +1,7 @@
gitlab (8.4.0+dfsg-2) UNRELEASED; urgency=medium
* Add systemd units (Closes: #812841)
* Add systemd units (Closes: #812841)
* Remove Gemfile.lock if found before bundle install (Closes: #813550)
-- Pirate Praveen <praveen@debian.org> Thu, 04 Feb 2016 13:34:56 +0530

5
debian/postinst vendored
View file

@ -84,7 +84,10 @@ case "$1" in
# Adjust database privileges
. /usr/lib/gitlab/scripts/grantpriv.sh
# Remove Gemfile.lock if present
rm -f ${gtilab_home}/Gemfile.lock
echo "Verifying we have all required libraries..."
su ${gitlab_user} -s /bin/sh -c 'bundle install --local'