Permalink
Browse files

Update rvm_install

  • Loading branch information...
inforserver2 committed May 3, 2014
1 parent c49289d commit 37bb597ad6944c9143a42bf66c17a3b82820e5a3
Showing with 7 additions and 4 deletions.
  1. +7 −4 rvm_install
View
@@ -6,9 +6,11 @@
# dependency
sudo apt-get install curl
# GET stable version
-\curl -L https://get.rvm.io | bash -s stable
+\curl -L https://get.rvm.io | sudo bash -s stable
# install
source /etc/profile.d/rvm.sh
+echo "source /etc/profile.d/rvm.sh" | sudo tee -a ~/.bashrc
+echo "source /etc/profile.d/rvm.sh" | sudo tee -a /root/.bashrc
# show version
rvm -v
# post intall
@@ -20,9 +22,10 @@ rvm install 2.1.0
rvm --default use 2.1.0
rvm gemset create rails4
rvm use 2.1.0@rails4 --default
-gem install rails --no-ri --no-rdoc
-gem install passenger
-passenger-install-apache2-module -a
+
+sudo bash -c "gem install rails --no-ri --no-rdoc"
+sudo bash -c "gem install passenger"
+sudo bash -c "passenger-install-apache2-module -a"
# rvm --create --rvmrc 2.0.0@rails4

0 comments on commit 37bb597

Please sign in to comment.