Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fixes to install.sh #200

Merged
merged 1 commit into from
Aug 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down