From 1e2c4b2a3f40840dd60d3c1903ff33658233920d Mon Sep 17 00:00:00 2001 From: Nikhil Benesch Date: Sat, 15 Mar 2014 17:22:18 -0400 Subject: [PATCH] Update Oracle accept-license-terms cookie format Oracle's download site no longer seems to accept the old cookie format. --- providers/ark.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/ark.rb b/providers/ark.rb index f32c550e..fd019f7a 100644 --- a/providers/ark.rb +++ b/providers/ark.rb @@ -62,7 +62,7 @@ def oracle_downloaded?(download_path, new_resource) def download_direct_from_oracle(tarball_name, new_resource) download_path = "#{Chef::Config[:file_cache_path]}/#{tarball_name}" jdk_id = new_resource.url.scan(/\/([6789]u[0-9][0-9]?-b[0-9][0-9])\//)[0][0] - cookie = "oraclelicensejdk-#{jdk_id}-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com" + cookie = "oraclelicense=accept-securebackup-cookie" if node['java']['oracle']['accept_oracle_download_terms'] # install the curl package p = package "curl" do