From ef802caada90facadbc809719edcdb1e5b3e752b Mon Sep 17 00:00:00 2001 From: James Tung Date: Sun, 18 Dec 2016 11:22:56 +0000 Subject: [PATCH] OK --- init.sh | 7 ++++++- mesos-init.sh | 8 +------- oracle-jdk-installer.sh | 3 ++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/init.sh b/init.sh index bca9df2..86e787d 100755 --- a/init.sh +++ b/init.sh @@ -2,4 +2,9 @@ apt-get update apt-get dist-upgrade -apt-get install vim git curl wget tar maven +apt-get install -y vim git curl wget tar maven + +# Install autotools (Only necessary if building from git repository). +apt-get install -y autoconf libtool + + diff --git a/mesos-init.sh b/mesos-init.sh index 031ed2d..578b045 100755 --- a/mesos-init.sh +++ b/mesos-init.sh @@ -2,13 +2,7 @@ ./init.sh -# Install a few utility tools. -apt-get install -y tar wget git - -# Install autotools (Only necessary if building from git repository). -apt-get install -y autoconf libtool - -# Install other Mesos dependencies. +# Install Mesos dependencies. apt-get -y install build-essential python-dev libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev zlib1g-dev # Install the latest OpenJDK. diff --git a/oracle-jdk-installer.sh b/oracle-jdk-installer.sh index 5a20dd4..b5a30af 100755 --- a/oracle-jdk-installer.sh +++ b/oracle-jdk-installer.sh @@ -16,7 +16,7 @@ then tar -zxvf $fileName -C /opt/jdk fi -./remove-default-jdk.sh +#./remove-default-jdk.sh update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_112/bin/java 100 update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_112/bin/javac 100 @@ -25,3 +25,4 @@ java -version javac -version export JAVA_HOME=/opt/jdk/$workDir +export PATH=$PATH:$JAVA_HOME/bin