fix uploads permission

This commit is contained in:
Praveen Arimbrathodiyil 2016-04-05 12:15:30 +05:30
parent 3d17922f7f
commit cba29a1faf

3
debian/postinst vendored
View file

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