Removed bashism in bin/elasticsearch

Using == in an if-statement works in bash but not in dash (used in ubuntu)
Replacing == with = results in strictl POSIX compliance.
This commit is contained in:
Alexander Reelsen 2013-12-24 13:35:59 +01:00
parent 1c758b0bb0
commit ababeaed38
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ launch_service()
fi fi
# The es-foreground option will tell ElasticSearch not to close stdout/stderr, but it's up to us not to daemonize. # The es-foreground option will tell ElasticSearch not to close stdout/stderr, but it's up to us not to daemonize.
if [ "x$daemonized" == "x" ]; then if [ "x$daemonized" = "x" ]; then
es_parms="$es_parms -Des.foreground=yes" es_parms="$es_parms -Des.foreground=yes"
exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \ exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \
org.elasticsearch.bootstrap.ElasticSearch org.elasticsearch.bootstrap.ElasticSearch