Last active
May 10, 2017 15:30
-
-
Save ravage/59fef2153cf2d4d7951cb2b94852bb30 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "Running /etc/rc.local" >> /var/log/messages | |
control_file=/etc/.rc.local.done | |
if [ -f $control_file ]; then exit 0; fi | |
# Install Oracle JVM 8 | |
apt-get -y install software-properties-common | |
add-apt-repository ppa:webupd8team/java | |
apt-get -y update | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
apt-get -y install oracle-java8-installer | |
#Install Maven2 | |
apt-get -y install maven2 | |
#Install Screen | |
apt-get -y install screen | |
touch $control_file | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment