Make yarn.lock writable

This commit is contained in:
Utkarsh Gupta 2019-05-18 16:23:43 +05:30
parent db6e4bc45c
commit d8e0908633

View file

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