Set path for yarn
This commit is contained in:
parent
65dd8e1597
commit
ae03eadb7b
1 changed files with 1 additions and 0 deletions
1
debian/rake-tasks.sh
vendored
1
debian/rake-tasks.sh
vendored
|
@ -33,6 +33,7 @@ runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/.node_modules'
|
||||||
runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/yarn'
|
runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/yarn'
|
||||||
runuser -u ${gitlab_user} -- sh -c 'cd /var/lib/gitlab/yarn; npm install yarn'
|
runuser -u ${gitlab_user} -- sh -c 'cd /var/lib/gitlab/yarn; npm install yarn'
|
||||||
runuser -u ${gitlab_user} -- sh -c '/var/lib/gitlab/yarn/node_modules/.bin/yarn --frozen-lockfile install'
|
runuser -u ${gitlab_user} -- sh -c '/var/lib/gitlab/yarn/node_modules/.bin/yarn --frozen-lockfile install'
|
||||||
|
export PATH=$PATH:/var/lib/gitlab/yarn/node_modules/.bin
|
||||||
# Remove write permissions of .yarn-metadata.json files
|
# Remove write permissions of .yarn-metadata.json files
|
||||||
runuser -u ${gitlab_user} -- sh -c 'find /var/lib/gitlab/.cache/yarn/v4/ -name .yarn-metadata.json -perm -a=w -exec chmod 644 {} \;'
|
runuser -u ${gitlab_user} -- sh -c 'find /var/lib/gitlab/.cache/yarn/v4/ -name .yarn-metadata.json -perm -a=w -exec chmod 644 {} \;'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue