Make yarn.lock writable
This commit is contained in:
parent
db6e4bc45c
commit
d8e0908633
1 changed files with 4 additions and 1 deletions
5
debian/gitlab.postinst
vendored
5
debian/gitlab.postinst
vendored
|
@ -118,7 +118,7 @@ case "$1" in
|
|||
|
||||
# nginx/httpd should be able to connect to gitlab-workhorse.socket and serve public
|
||||
chown ${gitlab_user}:${nginx_user} ${gitlab_uploads_path}/../* ${gitlab_pid_path}
|
||||
|
||||
|
||||
# Customize permissions
|
||||
echo "Updating file permissions..."
|
||||
chmod ug+rwX,o-rwx,u-s,g+s ${gitlab_repo_path}/
|
||||
|
@ -126,6 +126,9 @@ case "$1" in
|
|||
chown ${gitlab_user}: $i
|
||||
done
|
||||
|
||||
# Make yarn.lock writable
|
||||
chown ${gitlab_user}: /var/lib/gitlab/yarn.lock
|
||||
|
||||
runuser -u ${gitlab_user} -- sh -c "chmod 700 ${gitlab_uploads_path}"
|
||||
runuser -u ${gitlab_user} -- sh -c 'git config --global core.autocrlf "input"'
|
||||
|
||||
|
|
Loading…
Reference in a new issue