From 506025b979a724e5ac56554f1da42e82c08f5ab8 Mon Sep 17 00:00:00 2001 From: Mike Kruk Date: Tue, 16 Sep 2014 15:12:00 -0400 Subject: [PATCH] Update Release.php Curl needs to follow redirects now. --- lib/Pomander/Wordpress/Release.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Pomander/Wordpress/Release.php b/lib/Pomander/Wordpress/Release.php index 352973a..5960480 100644 --- a/lib/Pomander/Wordpress/Release.php +++ b/lib/Pomander/Wordpress/Release.php @@ -22,7 +22,7 @@ public function deploy($env) $cmd[] = "cd {$env->release_dir}"; $cmd[] = "mkdir -p $install_dir"; // download release - $cmd[] = "curl -s {$this->release_url()} > {$env->release_dir}/wordpress.tar"; + $cmd[] = "curl -sL {$this->release_url()} > {$env->release_dir}/wordpress.tar"; // extract if( $root_install ) { $cmd[] = "tar --strip-components=1 -xzf {$env->release_dir}/wordpress.tar";