Created
June 29, 2013 04:35
-
-
Save tfitch/5889768 to your computer and use it in GitHub Desktop.
Sun Java 1.5 Chef install command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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