diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-10-06 21:41:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 21:41:34 +0300 |
commit | 2d89dc301ed834d74b07350c7d8567eee78f966d (patch) | |
tree | 77d26afe7443c98c47e9b210ca86b7bdf248e3f2 /src/node/install.sh | |
parent | a9441adf0e023605d6afbbacfd9521634e02a59a (diff) |
Node: Fix nvm ownership (#199)
* Node: Fix nvm ownership
* remove 0002
Diffstat (limited to 'src/node/install.sh')
-rwxr-xr-x | src/node/install.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node/install.sh b/src/node/install.sh index 8eae62e..6a237d6 100755 --- a/src/node/install.sh +++ b/src/node/install.sh @@ -120,7 +120,7 @@ umask 0002 usermod -a -G nvm ${USERNAME} mkdir -p ${NVM_DIR} chown "${USERNAME}:nvm" ${NVM_DIR} -chmod g+s ${NVM_DIR} +chmod -R g+r+w ${NVM_DIR} su ${USERNAME} -c "$(cat << EOF set -e umask 0002 @@ -185,4 +185,6 @@ if [ "${INSTALL_TOOLS_FOR_NODE_GYP}" = "true" ]; then fi fi +find "${NVM_DIR}" -type d -print0 | xargs -n 1 -0 chmod g+s + echo "Done!" |