-
-
Save alebruck/942319 to your computer and use it in GitHub Desktop.
Linode Stackscript for Ubuntu 10.10 w/java/groovy/grails
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 | |
echo deb http://archive.canonical.com/ubuntu maverick partner >> /etc/apt/sources.list | |
echo deb-src http://archive.canonical.com/ubuntu maverick partner >> /etc/apt/sources.list | |
echo >> /etc/apt/sources.list | |
echo deb http://archive.canonical.com/ubuntu maverick-updates partner >> /etc/apt/sources.list | |
echo deb-src http://archive.canonical.com/ubuntu maverick-updates partner >> /etc/apt/sources.list | |
echo >> /etc/apt/sources.list | |
echo deb http://archive.canonical.com/ubuntu maverick-security partner >> /etc/apt/sources.list | |
echo deb-src http://archive.canonical.com/ubuntu maverick-security partner >> /etc/apt/sources.list | |
apt-get update | |
apt-get upgrade -y | |
echo Installing Sun Java 6 JDK | |
echo sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true | /usr/bin/debconf-set-selections | |
apt-get install sun-java6-jdk -y | |
echo export JAVA_HOME=/usr/lib/jvm/java-6-sun >> /root/.profile | |
export JAVA_HOME=/usr/lib/jvm/java-6-sun | |
echo Installing groovy 1.7.0 | |
apt-get install groovy -y | |
cd /root | |
GRAILS_VERSION=1.3.7; | |
echo Getting and installing latest Grails $GRAILS_VERSION distro from Spring | |
wget http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-$GRAILS_VERSION.zip | |
unzip /root/grails-$GRAILS_VERSION.zip | |
mv /root/grails-$GRAILS_VERSION /usr/share/grails | |
ln -s /usr/share/grails/bin/grails /usr/bin/grails | |
ln -s /usr/share/grails/bin/startGrails /usr/bin/startGrails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment