Skip to content

Commit 360fa93

Browse files
Update openjdk.rb.
I changed openjdk from version 6 to version 8.
1 parent 05e4512 commit 360fa93

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

recipes/openjdk.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
if platform?("ubuntu","debian","redhat","centos","fedora","scientific","amazon")
4343
ruby_block "update-java-alternatives" do
4444
block do
45-
if platform?("ubuntu", "debian") and version == 6
45+
if platform?("ubuntu", "debian") and version == 8
4646
run_context = Chef::RunContext.new(node, {})
4747
r = Chef::Resource::Execute.new("update-java-alternatives", run_context)
48-
r.command "update-java-alternatives -s java-6-openjdk"
48+
r.command "update-java-alternatives -s java-8-openjdk"
4949
r.returns [0,2]
5050
r.run_action(:create)
5151
else
52-
# have to do this on ubuntu for version 7 because Ubuntu does
53-
# not currently set jdk 7 as the default jvm on installation
52+
# have to do this on ubuntu for version 7 because Ubuntu does # n/a now
53+
# not currently set jdk 7 as the default jvm on installation # n/a now
5454
require "fileutils"
5555
arch = node['kernel']['machine'] =~ /x86_64/ ? "x86_64" : "i386"
5656
Chef::Log.debug("glob is #{java_home_parent}/java*#{version}*openjdk*")

0 commit comments

Comments
 (0)