From 2d89dc301ed834d74b07350c7d8567eee78f966d Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Thu, 6 Oct 2022 13:41:34 -0500 Subject: Node: Fix nvm ownership (#199) * Node: Fix nvm ownership * remove 0002 --- src/node/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/node/install.sh') 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!" -- cgit v1.2.3