diff --git a/debian/gitlab.links b/debian/gitlab.links index 1b9f602036..014f610fe8 100644 --- a/debian/gitlab.links +++ b/debian/gitlab.links @@ -2,7 +2,7 @@ var/lib/gitlab/public usr/share/gitlab/public var/lib/gitlab/shared usr/share/gitlab/shared var/lib/gitlab/db usr/share/gitlab/db 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/.ssh usr/share/gitlab/.ssh var/lib/gitlab/.bundle usr/share/gitlab/.bundle diff --git a/debian/gitlab.postinst b/debian/gitlab.postinst index 0b00790fcf..c1131750c7 100755 --- a/debian/gitlab.postinst +++ b/debian/gitlab.postinst @@ -126,6 +126,9 @@ case "$1" in chown ${gitlab_user}: $i 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 'git config --global core.autocrlf "input"'