fix uploads permission
This commit is contained in:
parent
3d17922f7f
commit
cba29a1faf
1 changed files with 1 additions and 2 deletions
3
debian/postinst
vendored
3
debian/postinst
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue