Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clean up install-chef-solo.sh : use RUBY_GEMS_VERSION

  • Loading branch information...
commit 86bdea10877036780e5fe122052dfc90f661286c 1 parent 2c1a61c
@obazoud authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 install-chef-solo.sh
View
11 install-chef-solo.sh
@@ -26,11 +26,12 @@ sudo aptitude --assume-yes --quiet install chef
sudo aptitude --assume-yes --quiet install ruby ruby-dev libopenssl-ruby rdoc ri irb build-essential wget ssl-cert curl
# RubyGems
+RUBY_GEMS_VERSION="1.8.12"
cd /tmp
-curl -O http://production.cf.rubygems.org/rubygems/rubygems-1.8.12.tgz
-tar zxf rubygems-1.8.12.tgz
-cd rubygems-1.8.12
+curl -O http://production.cf.rubygems.org/rubygems/rubygems-${RUBY_GEMS_VERSION}.tgz
+tar zxf rubygems-${RUBY_GEMS_VERSION}.tgz
+cd rubygems-${RUBY_GEMS_VERSION}
sudo ruby setup.rb --no-format-executable
-rm -rf /tmp/rubygems-1.8.12
-rm -f /tmp/rubygems-1.8.12.tgz
+rm -rf /tmp/rubygems-${RUBY_GEMS_VERSION}
+rm -f /tmp/rubygems-${RUBY_GEMS_VERSION}.tgz
Please sign in to comment.
Something went wrong with that request. Please try again.