From 0ed472aa25bd1a21acf431cbb85b7528ff0cf10a Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Wed, 15 Jun 2022 09:53:43 -0700 Subject: Fix permissions: add username:user_group (#50) * add username:user_group * fix remaining permissions * add * * remove * --- src/node/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node/install.sh') diff --git a/src/node/install.sh b/src/node/install.sh index bb71c64..b846007 100644 --- a/src/node/install.sh +++ b/src/node/install.sh @@ -121,7 +121,7 @@ fi umask 0002 usermod -a -G nvm ${USERNAME} mkdir -p ${NVM_DIR} -chown :nvm ${NVM_DIR} +chown "${USERNAME}:nvm" ${NVM_DIR} chmod g+s ${NVM_DIR} su ${USERNAME} -c "$(cat << EOF set -e -- cgit v1.2.3