remove /root/.npmrc permissions
This commit is contained in:
parent
b92d532c4b
commit
5d09b4eba7
@ -143,9 +143,9 @@ pipeline {
|
|||||||
apt-get update
|
apt-get update
|
||||||
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y rpm
|
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y rpm
|
||||||
printf '%s\\n' "Setting up ROOT user build permissions"
|
printf '%s\\n' "Setting up ROOT user build permissions"
|
||||||
mkdir -p /root/.npm/_logs /root/.npmrc
|
mkdir -p /root/.npm/_logs
|
||||||
chmod 755 /root
|
chmod 755 /root
|
||||||
chown -R 1000:1000 /root/.npm /root/.npmrc
|
chown -R 1000:1000 /root/.npm
|
||||||
printf '%s\\n' "Changing user to node"
|
printf '%s\\n' "Changing user to node"
|
||||||
su - node
|
su - node
|
||||||
printf '%s\\n' "Setting up NODE user build permissions"
|
printf '%s\\n' "Setting up NODE user build permissions"
|
||||||
|
Reference in New Issue
Block a user