Skip to content

Commit

Permalink
Check whether JAI has been successfully downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomt committed Feb 3, 2019
1 parent 14e881e commit 07cdf99
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions vagrant-setup/java80.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ else
wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64-jdk.bin -P $SETUP/cache
chmod u+x -P $SETUP/cache/jai-1_1_3-lib-linux-amd64-jdk.bin
fi
cd $JDK
echo "Installing JAI 1.1.3"
JDK=
echo -e "y\n" | $SETUP/cache/jai-1_1_3-lib-linux-amd64-jdk.bin
if [ -f "$SETUP/cache/jai-1_1_3-lib-linux-amd64-jdk.bin" ]
then
cd $JDK
echo "Installing JAI 1.1.3"
echo -e "y\n" | $SETUP/cache/jai-1_1_3-lib-linux-amd64-jdk.bin
else
echo "Warning. Failed to download JAI. Skiping its installation!"
fi

cd /etc/alternatives
if [ -L "jre" ]
Expand Down

0 comments on commit 07cdf99

Please sign in to comment.