Skip to content

Instantly share code, notes, and snippets.

@techieBrandon
Created February 27, 2012 23:40
Show Gist options
  • Save techieBrandon/1927939 to your computer and use it in GitHub Desktop.
Save techieBrandon/1927939 to your computer and use it in GitHub Desktop.
Trimmed version of custom rvm installer script
CURDIR=$PWD
MNTDIR=${PWD%/*}
RVM_SOURCE=$CURDIR/source/wayneeseguin-rvm-45a40ea
RVM_HOME=$HOME/.rvm
cd $RVM_SOURCE
echo "Preparing to execute $RVM_SOURCE/scripts/install"
su deployer -c "$RVM_SOURCE/scripts/install --path $RVM_HOME"
export rvm_prefix=/home/deployer/
export rvm_path=/home/deployer/.rvm
export rvm_bin_path=/home/deployer/.rvm/rubies/ruby-1.9.3-p125/bin/
export rvm_user_install_flag=1
#export rvm_ruby_binary=/home/deployer/.rvm/rubies/ruby-1.9.3-p125/bin/ruby-1.9.3-p125
#export rvm_ruby_home=/home/deployer/.rvm/rubies/ruby-1.9.3-p125
su deployer -c "/bin/bash $RVM_HOME/scripts/rvm --archives $CURDIR/source/ && /home/deployer/.rvm/bin/rvm --debug --reconfigure --archive -C --prefix='/home/deployer/.rvm/' install 1.9.3-p125"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment