Install RVM for vagrant user and prevent installation if already installed

This commit is contained in:
Fabio Rehm 2013-07-10 20:52:40 -03:00
parent ff23fbaec4
commit 355185b4ce

View file

@ -54,5 +54,10 @@ Vagrant.configure("2") do |config|
time sudo pacman -Syu --noconfirm libffi git time sudo pacman -Syu --noconfirm libffi git
fi' fi'
end end
config.vm.provision :shell, inline: '\curl -L https://get.rvm.io | bash -s stable'
config.vm.provision :shell, inline: '
if ! [ -d /home/vagrant/.rvm ]; then
HOME=/home/vagrant su -p vagrant -c "curl -L https://get.rvm.io | bash -s stable"
fi
'
end end