Packaging: Fix vagrant tests on centos 6 (#17979)

The RPM init script did not include the check for `bin/elasticsearch` being
executable. This fix adds this checks and makes the tests pass.

This fixes the init script, so the tests pass on centos-6 again.
This commit is contained in:
Alexander Reelsen 2016-04-26 11:55:50 +02:00
parent 98a37a1e54
commit 9cadc1f40b
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,11 @@ if [ -n $USER ] && [ -z $ES_USER ] ; then
ES_USER=$USER
fi
if [ ! -x "$exec" ]; then
echo "The elasticsearch startup script does not exists or it is not executable, tried: $exec"
exit 1
fi
checkJava() {
if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA="$JAVA_HOME/bin/java"