Skip to content

Instantly share code, notes, and snippets.

@tfitch
Created June 29, 2013 04:35
Show Gist options
  • Save tfitch/5889768 to your computer and use it in GitHub Desktop.
Save tfitch/5889768 to your computer and use it in GitHub Desktop.
Sun Java 1.5 Chef install command
bash "install-jdk15" do
cwd "/install/location/path"
code <<-EOH
./jdk-1_5_0_XYZ-linux-i586.bin >/dev/null < <(echo yes) >/dev/null < <(echo yes)
rm -rf /install/location/path/jdk1.5.0_XYZ/sample
rm -rf /install/location/path/jdk1.5.0_XYZ/demo
ln -s /install/location/path/jdk1.5.0_XYZ /install/location/path/java
EOH
not_if { ::File.exists?('/install/location/path/jdk1.5.0_XYZ/README.html') }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment