We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c417cc commit 97c31e7Copy full SHA for 97c31e7
scripts/provisioning/ruby.sh
@@ -2,19 +2,16 @@
2
3
SSH_USER=${SSH_USERNAME:-vagrant}
4
5
-export HOME=/home/${SSH_USER}
6
-
7
-RVM_PATH=${HOME}/.rvm
8
+su ${SSH_USER} <<EOF
9
echo "==> Trusting Michal Papis"
10
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
11
12
echo "==> Installing RVM"
13
curl -sSL https://get.rvm.io | bash -s stable
+source ~/.rvm/scripts/rvm
14
15
echo "==> Installing Ruby 2.1"
16
-source ${RVM_PATH}/scripts/rvm
17
-rvm use --install 2.1
+rvm use --install --default 2.1
+EOF
18
19
-chown -R ${SSH_USER}:${SSH_USER} ${RVM_PATH}
20
-export HOME=/home/root
+chown -R ${SSH_USER}:${SSH_USER} /home/${SSH_USER}
0 commit comments