[DRE-commits] [gitlab] 01/02: change ownership and more checks

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Apr 5 15:43:45 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 869a24f41e925978b5b4f5b19bb04db49b2b0dff
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Tue Apr 5 21:06:24 2016 +0530

    change ownership and more checks
---
 debian/rake-tasks.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh
index a9e15b3..00a8a26 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -19,8 +19,12 @@ if ! [ -f "${gitlab_app_root}/config/secrets.yml" ]; then
 
 # Restrict permissions for secret files
 
+chown ${gitlab_user}: ${gitlab_data_dir}/.secret
 chmod 0700 ${gitlab_data_dir}/.secret
-chmod 0700 ${gitlab_data_dir}/.gitlab_shell_secret
+if [ -e ${gitlab_data_dir}/.gitlab_shell_secret ]; then
+  chmod 0700 ${gitlab_data_dir}/.gitlab_shell_secret
+fi
+chown ${gitlab_user}: ${gitlab_conf}/secrets.yml
 chmod 0700 ${gitlab_conf}/secrets.yml
 
 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