vaguerent/scripts/install_rvm
2021-06-14 19:30:31 -04:00

20 lines
386 B
Bash

#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
if ! rvm --version
then
# https://github.com/rvm/ubuntu_rvm#install
apt-add-repository -y ppa:rael-gc/rvm &&
apt-get update -y &&
apt-get install -y rvm || {
echo 'Failed to install rvm' >&2
exit 1
}
fi
usermod -a -G rvm vagrant || {
echo 'Failed to add vagrant to the rvm group' >&2
exit 1
}