diff --git a/distribution/src/bin/elasticsearch b/distribution/src/bin/elasticsearch index e45bdb1ad22..6b484333af4 100755 --- a/distribution/src/bin/elasticsearch +++ b/distribution/src/bin/elasticsearch @@ -38,7 +38,7 @@ fi unset KEYSTORE_PASSWORD KEYSTORE_PASSWORD= if [[ $CHECK_KEYSTORE = true ]] \ - && "`dirname "$0"`"/elasticsearch-keystore has-passwd --silent + && bin/elasticsearch-keystore has-passwd --silent then if ! read -s -r -p "Elasticsearch keystore password: " KEYSTORE_PASSWORD ; then echo "Failed to read keystore password on console" 1>&2