Skip to content
Open
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
7 changes: 3 additions & 4 deletions provision.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env bash

SETUP_DIR=$HOME/.pio
INSTALLED_FLAG=$SETUP_DIR/installed
INSTALL_SCRIPT_PATH='https://raw.githubusercontent.com/apache/incubator-predictionio/master/bin/install.sh'

mkdir -p $SETUP_DIR

if [ ! -f $INSTALLED_FLAG ]; then
if [ ! -x "$(command -v pio-start-all)" ]; then

echo "Installing PredictionIO..."
bash -e -c "$(curl -s https://install.prediction.io/install.sh)" 0 -y
bash -e -c "$(curl -sS $INSTALL_SCRIPT_PATH)" 0 -y
if [ $? -ne 0 ]; then

echo "ERROR: PredictionIO installation failed."
Expand All @@ -23,7 +23,6 @@ if [ ! -f $INSTALLED_FLAG ]; then
else

echo "Finish PredictionIO installation."
touch $INSTALLED_FLAG

fi

Expand Down