Skip to content

Commit

Permalink
Merge pull request #146 from benesch/master
Browse files Browse the repository at this point in the history
Update Oracle accept-license-terms cookie format
  • Loading branch information
carmstrong committed Mar 15, 2014
2 parents 955e7f8 + 1e2c4b2 commit f99128f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/ark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f99128f

Please sign in to comment.