[PIO-126] Update install.sh to use binary release Install script need to be improved.
Project: http://git-wip-us.apache.org/repos/asf/predictionio/repo Commit: http://git-wip-us.apache.org/repos/asf/predictionio/commit/7cd92afd Tree: http://git-wip-us.apache.org/repos/asf/predictionio/tree/7cd92afd Diff: http://git-wip-us.apache.org/repos/asf/predictionio/diff/7cd92afd Branch: refs/heads/livedoc Commit: 7cd92afde8844d191826fbda9cf8b68311945896 Parents: 9c0ca57 Author: Chan Lee <chanlee...@gmail.com> Authored: Sat Mar 3 16:00:39 2018 -0800 Committer: Chan Lee <chanlee...@gmail.com> Committed: Mon Mar 5 13:10:12 2018 -0800 ---------------------------------------------------------------------- bin/install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/predictionio/blob/7cd92afd/bin/install.sh ---------------------------------------------------------------------- diff --git a/bin/install.sh b/bin/install.sh index 53af90e..d785b12 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -284,11 +284,10 @@ files=$(ls PredictionIO*.tar.gz 2> /dev/null | wc -l) if [[ $files == 0 ]]; then echo "Downloading PredictionIO..." - curl -L https://codeload.github.com/apache/predictionio/tar.gz/master > predictionio-master.tar.gz + curl -L https://dist.apache.org/repos/dist/release/predictionio/0.12.1/apache-predictionio-0.12.1-bin.tar.gz > predictionio-release.tar.gz + tar zxf predictionio-0.12.1.tar.gz - tar zxf predictionio-master.tar.gz - - mv predictionio-master PredictionIO + mv predictionio-0.12.1 PredictionIO sh PredictionIO/make-distribution.sh cp PredictionIO/${PIO_FILE} ${TEMP_DIR}