Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl fails to download Drush #6

Open
eveyrat opened this issue Jan 12, 2016 · 3 comments
Open

Curl fails to download Drush #6

eveyrat opened this issue Jan 12, 2016 · 3 comments

Comments

@eveyrat
Copy link

eveyrat commented Jan 12, 2016

Adding the -L parameter fixes the issue

-L: "If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place."

diff --git a/lib/capdrupal.rb b/lib/capdrupal.rb
old mode 100644
new mode 100755
index 97f3382..9a54023
--- a/lib/capdrupal.rb
+++ b/lib/capdrupal.rb
@@ -183,7 +183,7 @@ Capistrano::Configuration.instance(:must_exist).load do
   namespace :drush do
     desc "Gets drush and installs it"
     task :get, :roles => :app, :except => { :no_release => true } do
-      run "#{try_sudo} cd #{shared_path} && curl -O -s http://ftp.drupal.org/files/projects/drush-7.x-5.8.tar.gz && tar -xf drush-7.x-5.8.tar.gz && rm drush-7.x-5.8.tar.gz"
+      run "#{try_sudo} cd #{shared_path} && curl -LO -s http://ftp.drupal.org/files/projects/drush-7.x-5.8.tar.gz && tar -xf drush-7.x-5.8.tar.gz && rm drush-7.x-5.8.tar.gz"
       run "#{try_sudo} cd #{shared_path} && chmod u+x drush/drush"
     end
@rodrigoaguilera
Copy link

It that line is to be fixed is should download drush from the official repo at github not from drupal.org

@gido
Copy link

gido commented Jan 12, 2016

@rodrigoaguilera are you suggesting https://github.com/drush-ops/drush/archive/8.0.2.tar.gz ?

@rodrigoaguilera
Copy link

I think that is the best choice.

zufrieden added a commit to TEDxLausanne/website that referenced this issue Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants