remove /root/.npmrc permissions

This commit is contained in:
Hyatt 2022-10-02 16:08:20 -05:00
parent b92d532c4b
commit 5d09b4eba7
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -143,9 +143,9 @@ pipeline {
apt-get update
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y rpm
printf '%s\\n' "Setting up ROOT user build permissions"
mkdir -p /root/.npm/_logs /root/.npmrc
mkdir -p /root/.npm/_logs
chmod 755 /root
chown -R 1000:1000 /root/.npm /root/.npmrc
chown -R 1000:1000 /root/.npm
printf '%s\\n' "Changing user to node"
su - node
printf '%s\\n' "Setting up NODE user build permissions"