Skip to content
Browse files

No need for sudo prefix since script is run as normal user.

  • Loading branch information...
1 parent e5ec94d commit 33128c633a9e0cea4693454c20cffe81debe6697 @joshfng joshfng committed Jan 30, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −2 railsready.sh
  2. +0 −4 recipes/centos.sh
View
4 railsready.sh
@@ -92,12 +92,12 @@ cd && mkdir -p railsready/src && cd railsready && touch install.log
echo "==> done..."
echo -e "\n=> Ensuring there is a .bashrc and .bash_profile..."
-sudo touch $HOME/.bashrc && sudo touch $HOME/.bash_profile
+touch $HOME/.bashrc && touch $HOME/.bash_profile
echo "==> done..."
echo -e "\n=> Downloading and running recipe for $distro...\n"
#Download the distro specific recipe and run it, passing along all the variables as args
-sudo wget --no-check-certificate -O $railsready_path/src/$distro.sh https://github.com/joshfng/railsready/raw/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
+wget --no-check-certificate -O $railsready_path/src/$distro.sh https://github.com/joshfng/railsready/raw/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
echo -e "\n==> done running $distro specific commands..."
#now that all the distro specific packages are installed lets get Ruby
View
4 recipes/centos.sh
@@ -19,10 +19,6 @@ script_runner=$(whoami)
railsready_path=$7
log_file=$8
-git_source_url="http://kernel.org/pub/software/scm/git/git-1.7.3.5.tar.bz2"
-git_source_tar_name="git-1.7.3.5.tar.bz2"
-git_source_dir_name="git-1.7.3.5"
-
epel_repo_url="http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm"
#echo "vars set: $ruby_version $ruby_version_string $ruby_source_url $ruby_source_tar_name $ruby_source_dir_name $whichRuby $railsready_path $log_file"

0 comments on commit 33128c6

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