Skip to content

Commit ced9b0a

Browse files
Update openjdk.rb
Commented out arch stanza on line 55.
1 parent a483a01 commit ced9b0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

recipes/openjdk.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# have to do this on ubuntu for version 7 because Ubuntu does # n/a now
5353
# not currently set jdk 7 as the default jvm on installation # n/a now
5454
require "fileutils"
55-
arch = node['kernel']['machine'] =~ /x86_64/ ? "x86_64" : "i386"
55+
#arch = node['kernel']['machine'] =~ /x86_64/ ? "x86_64" : "i386"
5656
Chef::Log.debug("glob is #{java_home_parent}/java*#{version}*openjdk*")
5757
jdk_home = Dir.glob("#{java_home_parent}/java*#{version}*openjdk{,[-\.]#{arch}}")[0]
5858
Chef::Log.debug("jdk_home is #{jdk_home}")
@@ -63,8 +63,8 @@
6363
FileUtils.ln_sf jdk_home, java_home
6464

6565
cmd = Chef::ShellOut.new(
66-
%Q[ update-alternatives --install /usr/bin/java java ${java_home}/bin/java 1;
67-
update-alternatives --set java ${java_home}/bin/java ]
66+
%Q[ update-alternatives --install /usr/bin/java java #{java_home}/bin/java 1;
67+
update-alternatives --set java #{java_home}/bin/java ]
6868
).run_command
6969
unless cmd.exitstatus == 0 or cmd.exitstatus == 2
7070
Chef::Application.fatal!("Failed to update-alternatives for openjdk!")

0 commit comments

Comments
 (0)