Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix more rvm install issues
  • Loading branch information
stagrlee committed Apr 5, 2012
1 parent 6321faa commit 16ee3b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions templates/ubuntu-12.04-server-amd64/postinstall.sh
Expand Up @@ -39,15 +39,21 @@ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
chmod +x /tmp/rvm-installer
/tmp/rvm-installer stable

# listen up, blank lines could be screwing things up
sed -i -e "/^$/d" /usr/local/rvm/gemsets/default.gems

# Install Ruby using RVM
echo "Installing Ruby 1.9.3 as default ruby"
bash -c '
source /etc/profile
rvm install 1.9.3
rvm use 1.9.3 --default
rvm install 1.9.3-p125
rvm alias create default ruby-1.9.3-p125
rvm use 1.9.3-p125 --default
echo "Installing default RubyGems"
gem install chef puppet ruby-debug-ide19 ruby-debug-base19 ruby-debug19 rails mysql mysql2'
gem install chef puppet'

sleep 1

# Make default user member of RVM group
usermod -a -G rvm vagrant
Expand Down

1 comment on commit 16ee3b8

@beddari
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work on this, picked up some of your patches for myself.

I'd just want to chime in and say I'd not want RVM in the 'default' ubuntu-12.04-server-amd64 template. Not a problem for me as I create all my templates myself, but .. whatever Patrick thinks will be the answer ;-)

Please sign in to comment.