[DRE-commits] [gitlab] 01/02: move Gemfile.lock to /var/lib/gitlab
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Feb 18 13:30:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit a4e59c05d8159036b156339097e45bab6a7ccdf3
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Feb 18 18:39:34 2016 +0530
move Gemfile.lock to /var/lib/gitlab
---
debian/postinst | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/debian/postinst b/debian/postinst
index 7cee149..d93b2c6 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'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list