Created
January 14, 2011 01:04
-
-
Save adilsoncarvalho/778965 to your computer and use it in GitHub Desktop.
script to install sun java sdk6 on ubuntu
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
#!/bin/bash | |
USUARIO=`whoami` | |
if [ "$USUARIO" != 'root' ]; then | |
sudo $0 | |
else | |
sudo apt-get install -y python-software-properties | |
add-apt-repository ppa:ferramroberto/java | |
apt-get update -y | |
apt-get install -y sun-java6-jdk sun-java6-plugin | |
update-java-alternatives -s java-6-sun | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment