From 0db2db612b859026ed66b03b126b4517460e445c Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Tue, 6 Aug 2013 16:19:53 +0200 Subject: [PATCH] RPM Init script bugfix, which might prevent startup Removing dangerous set calls, which might not set back the current state, but something invalid which leads to stop the script when proceeding --- src/rpm/init.d/elasticsearch | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/rpm/init.d/elasticsearch b/src/rpm/init.d/elasticsearch index b17d075baaa..8d611514a11 100644 --- a/src/rpm/init.d/elasticsearch +++ b/src/rpm/init.d/elasticsearch @@ -50,7 +50,6 @@ if [ -n $USER ] && [ -z $ES_USER ] ; then fi checkJava() { - set +e if [ -x "$JAVA_HOME/bin/java" ]; then JAVA="$JAVA_HOME/bin/java" else @@ -61,7 +60,6 @@ checkJava() { echo "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME" exit 1 fi - set -e } start() {