Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added simpler recipes path for distros

  • Loading branch information...
commit b357a53f027d87c807031096d7ab3358e871d259 1 parent 55e5a32
Larz Conwell authored February 06, 2012

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  railsready.sh
7  railsready.sh
@@ -19,6 +19,7 @@ ruby_source_dir_name="ruby-1.9.3-p0"
19 19
 script_runner=$(whoami)
20 20
 railsready_path=$(cd && pwd)/railsready
21 21
 log_file="$railsready_path/install.log"
  22
+railsready_recipes_path="https://raw.github.com/joshfng/railsready/master/recipes"
22 23
 
23 24
 control_c()
24 25
 {
@@ -48,7 +49,7 @@ elif [[ $MACHTYPE = *darwin* ]] ; then
48 49
     if [[ ! -s /Library/Developer/Shared/XcodeTools.plist ]] ; then
49 50
       echo -e "\nXCode must be installed in order to build required software.\n"
50 51
       exit 1
51  
-    fi  
  52
+    fi
52 53
 else
53 54
   echo -e "\nRails Ready currently only supports Ubuntu and CentOS and OSX\n"
54 55
   exit 1
@@ -103,9 +104,9 @@ echo "==> done..."
103 104
 echo -e "\n=> Downloading and running recipe for $distro...\n"
104 105
 #Download the distro specific recipe and run it, passing along all the variables as args
105 106
 if [[ $MACHTYPE = *linux* ]] ; then
106  
-  wget --no-check-certificate -O $railsready_path/src/$distro.sh https://raw.github.com/joshfng/railsready/master/recipes/$distro.sh && cd $railsready_path/src && bash $distro.sh $ruby_version $ruby_version_string $ruby_source_url $ruby_source_tar_name $ruby_source_dir_name $whichRuby $railsready_path $log_file
  107
+  wget --no-check-certificate -O $railsready_path/src/$distro.sh railsready_recipes_path/$distro.sh && cd $railsready_path/src && bash $distro.sh $ruby_version $ruby_version_string $ruby_source_url $ruby_source_tar_name $ruby_source_dir_name $whichRuby $railsready_path $log_file
107 108
 else
108  
-  cd $railsready_path/src && curl -O https://raw.github.com/joshfng/railsready/master/recipes/$distro.sh && bash $distro.sh $ruby_version $ruby_version_string $ruby_source_url $ruby_source_tar_name $ruby_source_dir_name $whichRuby $railsready_path $log_file
  109
+  cd $railsready_path/src && curl -O railsready_recipes_path/$distro.sh && bash $distro.sh $ruby_version $ruby_version_string $ruby_source_url $ruby_source_tar_name $ruby_source_dir_name $whichRuby $railsready_path $log_file
109 110
 fi
110 111
 echo -e "\n==> done running $distro specific commands..."
111 112
 

0 notes on commit b357a53

Please sign in to comment.
Something went wrong with that request. Please try again.