Make yarn.lock writable

This commit is contained in:
Utkarsh Gupta 2019-05-18 03:43:49 +05:30
parent 7653571603
commit 2e12070f1e
2 changed files with 4 additions and 1 deletions

2
debian/gitlab.links vendored
View file

@ -2,7 +2,7 @@ var/lib/gitlab/public usr/share/gitlab/public
var/lib/gitlab/shared usr/share/gitlab/shared var/lib/gitlab/shared usr/share/gitlab/shared
var/lib/gitlab/db usr/share/gitlab/db var/lib/gitlab/db usr/share/gitlab/db
var/lib/gitlab/.node_modules usr/share/gitlab/node_modules var/lib/gitlab/.node_modules usr/share/gitlab/node_modules
var/lib/gitlab/yarn.lock usr/share/gitlab/yarn.lock /var/lib/gitlab/yarn.lock /usr/share/gitlab/yarn.lock
var/lib/gitlab/yarn-error.log usr/share/gitlab/yarn-error.log var/lib/gitlab/yarn-error.log usr/share/gitlab/yarn-error.log
var/lib/gitlab/.ssh usr/share/gitlab/.ssh var/lib/gitlab/.ssh usr/share/gitlab/.ssh
var/lib/gitlab/.bundle usr/share/gitlab/.bundle var/lib/gitlab/.bundle usr/share/gitlab/.bundle

View file

@ -126,6 +126,9 @@ case "$1" in
chown ${gitlab_user}: $i chown ${gitlab_user}: $i
done done
# Make yarn.lock writable
chown ${gitlab_user}: /usr/share/gitlab/yarn.lock
runuser -u ${gitlab_user} -- sh -c "chmod 700 ${gitlab_uploads_path}" runuser -u ${gitlab_user} -- sh -c "chmod 700 ${gitlab_uploads_path}"
runuser -u ${gitlab_user} -- sh -c 'git config --global core.autocrlf "input"' runuser -u ${gitlab_user} -- sh -c 'git config --global core.autocrlf "input"'