From d90a40476143e945aad4561a2d0733c06be7a5b1 Mon Sep 17 00:00:00 2001 From: fsoppelsa Date: Fri, 5 Jul 2013 15:13:20 +0200 Subject: [PATCH] Permissions --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 535d56a..1b72e2b 100755 --- a/install.sh +++ b/install.sh @@ -31,6 +31,11 @@ else fi fi +# Set permissions for multi user environment +if [ `whoami` == 'root' ]; then + chmod -R u+rwX,g+rwX,o+rX $NVM_DIR +fi + SOURCE_STR="[[ -s "$NVM_DIR/nvm.sh" ]] && . "$NVM_DIR/nvm.sh" # This loads NVM" if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then