aboutsummaryrefslogtreecommitdiff
path: root/src/ruby
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-06-15 19:53:43 +0300
committerGitHub <noreply@github.com>2022-06-15 19:53:43 +0300
commit0ed472aa25bd1a21acf431cbb85b7528ff0cf10a (patch)
tree7a7a2bb78f979fc62e79814250fb7e5a31426ee9 /src/ruby
parentbc30428c914785479148f999114494a6a1f603d0 (diff)
Fix permissions: add username:user_group (#50)
* add username:user_group * fix remaining permissions * add * * remove *
Diffstat (limited to 'src/ruby')
-rw-r--r--src/ruby/install.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ruby/install.sh b/src/ruby/install.sh
index ade545c..4191023 100644
--- a/src/ruby/install.sh
+++ b/src/ruby/install.sh
@@ -277,15 +277,15 @@ if [ "${SKIP_RBENV_RBUILD}" != "true" ]; then
ln -s /usr/local/rvm/rubies/default/bin/ruby /usr/local/rvm/gems/default/bin
- chown -R :rvm "/home/${USERNAME}/.rbenv"
+ chown -R "${USERNAME}:rvm" "/home/${USERNAME}/.rbenv/"
chmod -R g+r+w "/home/${USERNAME}/.rbenv"
find "/home/${USERNAME}/.rbenv" -type d | xargs -n 1 chmod g+s
fi
fi
-chown -R :rvm "/usr/local/rvm"
-chmod -R g+r+w "/usr/local/rvm"
-find "/usr/local/rvm" -type d | xargs -n 1 chmod g+s
+chown -R "${USERNAME}:rvm" "/usr/local/rvm/"
+chmod -R g+r+w "/usr/local/rvm/"
+find "/usr/local/rvm/" -type d | xargs -n 1 chmod g+s
# Clean up
rvm cleanup all