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:
parent
1c758b0bb0
commit
ababeaed38
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue