Remove world write permissions of .yarn-metadata.json files
This commit is contained in:
parent
38ab7ea8a0
commit
b3919618a3
1 changed files with 2 additions and 0 deletions
2
debian/rake-tasks.sh
vendored
2
debian/rake-tasks.sh
vendored
|
@ -33,6 +33,8 @@ 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 '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'
|
||||
# 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 {} \;'
|
||||
|
||||
echo "Precompiling locales..."
|
||||
runuser -u ${gitlab_user} -- sh -c 'bundle exec rake gettext:po_to_json'
|
||||
|
|
Loading…
Reference in a new issue