[DRE-commits] [gitlab] 03/03: .secret may be a symlink
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Feb 18 13:57:12 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 beb47e181f645e8b49c4687b11f9ba229177bac0
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Feb 18 19:26:48 2016 +0530
.secret may be a symlink
---
debian/postinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/postinst b/debian/postinst
index e2ff34a..1443310 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -136,7 +136,7 @@ case "$1" in
su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/Gemfile.lock"
ln -sf ${gitlab_data_dir}/Gemfile.lock ${gitlab_app_root}/Gemfile.lock
- if ! [ -f "${gitlab_app_root}" ]; then
+ if ! [ -e ${gitlab_app_root}/.secret ] ; then
su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/.secret"
ln -s ${gitlab_data_dir}/.secret ${gitlab_app_root}/.secret
fi
--
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