[DRE-commits] [gitlab] 01/05: fix uploads permission

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Apr 5 09:00:50 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 cba29a1faf780174bd9461470edcf455528c8062
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Tue Apr 5 12:15:30 2016 +0530

    fix uploads permission
---
 debian/postinst | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index a4f9c4f..aeec025 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -50,7 +50,6 @@ case "$1" in
       chown -R ${gitlab_user}: $i
     done
 
-    chmod 0700 ${gitlab_uploads_path}
 
     # nginx should be able to connect to gitlab-workhorse.socket and serve public
     chown ${gitlab_user}:${nginx_user} -R ${gitlab_uploads_path}/.. ${gitlab_pid_path}
@@ -63,7 +62,7 @@ case "$1" in
       chown -R ${gitlab_user}: $i
     done
 
-    su ${gitlab_user} -s /bin/sh -c "chmod 750 ${gitlab_uploads_path}"
+    su ${gitlab_user} -s /bin/sh -c "chmod 700 ${gitlab_uploads_path}"
     su ${gitlab_user} -s /bin/sh -c 'git config --global core.autocrlf "input"'
 
     # Commands below needs to be run from gitlab_app_root

-- 
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