Skip to content

Commit

Permalink
Workaround for bad environment management
Browse files Browse the repository at this point in the history
  • Loading branch information
markelliot authored Jul 3, 2016
1 parent 344c237 commit 12aa4a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/resources/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ CHECK_ARGS="@checkArgs@"
SERVICE_HOME=${SERVICE_HOME:-$(cd "$(dirname "$0")/../../../" && pwd)}
cd "$SERVICE_HOME"

# prefer java 8 when available to deal with poor environment management
if [ -n "$JAVA_8_HOME" ]; then
export JAVA_HOME=$JAVA_8_HOME
fi

source service/bin/config.sh

# now check health
printf "%-50s" "Checking health of '$SERVICE'..."
$SERVICE_CMD $CHECK_ARGS
Expand Down

0 comments on commit 12aa4a5

Please sign in to comment.