From 5b5a16d0d4bd2bec8ba9f2f28be6316e434c1128 Mon Sep 17 00:00:00 2001 From: Justin Matthew Roberts Date: Wed, 24 Feb 2016 22:24:52 -0500 Subject: [PATCH] minor fixes - changed grails version - fixed install if statement - changed to java 7 - fixed sed statement from not creating ice.propertiese file --- install.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 0e18411f..7d3196cd 100755 --- a/install.sh +++ b/install.sh @@ -2,17 +2,19 @@ # Get Ice in a ready-to-run state on a fresh AWI instance. -GRAILS_VERSION=2.2.1 +GRAILS_VERSION=2.4.4 # Install prerequisites if [ -f /etc/redhat-release ]; then echo "Installing redhat packages" - sudo yum -y install git java-1.6.0-openjdk-devel.x86_64 wget unzip -else - [ -f /etc/debian-release ]; + sudo yum -y install git java-1.7.0-openjdk-devel.x86_64 wget unzip +elif [ -f /etc/debian-release ];then echo "Installing debian packages" - sudo apt-get -y install git openjdk-6-jdk wget unzip + sudo apt-get -y install git openjdk-7-jdk wget unzip +else + echo "Assuming AWS AMI, installing packages" + sudo yum -y install git java-1.7.0-openjdk-devel.x86_64 wget unzip fi INSTALL_DIR=$(pwd) @@ -74,7 +76,7 @@ do echo -n "-> " read -r PROCBUCKET done -sed -rie 's/=billing_s3bucketprefix\//=/; s|\/mnt\/|'"${HOME_DIR}"'\/|; s/=work_s3bucketprefix\//=/; s/^ice.account.*//; s/=billing_s3bucketname1/='${BILLBUCKET}'/; s/=work_s3bucketname/='${PROCBUCKET}'/' src/java/ice.properties +sed -ri 's/=billing_s3bucketprefix\//=/; s|\/mnt\/|'"${HOME_DIR}"'\/|; s/=work_s3bucketprefix\//=/; s/^ice.account.*//; s/=billing_s3bucketname1/='${BILLBUCKET}'/; s/=work_s3bucketname/='${PROCBUCKET}'/' src/java/ice.properties echo Ice is now ready to run as a processor. If you want to run the reader, edit: echo ~/ice/src/java/ice.properties