[DRE-commits] [gitlab] 02/02: create .secret in /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 2e61a668a2d2776414a22ee063270369b25ef04c
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Feb 18 18:59:05 2016 +0530
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 d93b2c6..7cd9a4f 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'
--
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