Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Setting password by the ELASTIC_PASSWORD doesn't work #30

Open
binlab opened this issue Mar 8, 2020 · 0 comments
Open

Setting password by the ELASTIC_PASSWORD doesn't work #30

binlab opened this issue Mar 8, 2020 · 0 comments

Comments

@binlab
Copy link

binlab commented Mar 8, 2020

Hi @blacktop!
Setting password by the ENV - ELASTIC_PASSWORD doesn't work because of the condition -

if [[ -d bin/x-pack ]]; then
false as this folder doesn't present in a folder /usr/share/elasticsearch/bin

root@elasticsearch:/# ls -la /usr/share/elasticsearch/bin/
total 19604
drwxr-xr-x. 2 root root     4096 Mar  5 16:53 .
drwxr-xr-x. 1 root root       32 Mar  5 16:53 ..
-rwxr-xr-x. 1 root root     1915 Feb 29 00:23 elasticsearch
-rwxr-xr-x. 1 root root      491 Feb 29 00:23 elasticsearch-certgen
-rwxr-xr-x. 1 root root      483 Feb 29 00:23 elasticsearch-certutil
-rwxr-xr-x. 1 root root      982 Feb 29 00:23 elasticsearch-cli
-rwxr-xr-x. 1 root root      433 Feb 29 00:23 elasticsearch-croneval
-rwxr-xr-x. 1 root root     4280 Feb 29 00:23 elasticsearch-env
-rwxr-xr-x. 1 root root     1828 Feb 29 00:23 elasticsearch-env-from-file
-rwxr-xr-x. 1 root root      121 Feb 29 00:23 elasticsearch-keystore
-rwxr-xr-x. 1 root root      440 Feb 29 00:23 elasticsearch-migrate
-rwxr-xr-x. 1 root root      126 Feb 29 00:23 elasticsearch-node
-rwxr-xr-x. 1 root root      172 Feb 29 00:23 elasticsearch-plugin
-rwxr-xr-x. 1 root root      431 Feb 29 00:23 elasticsearch-saml-metadata
-rwxr-xr-x. 1 root root      438 Feb 29 00:23 elasticsearch-setup-passwords
-rwxr-xr-x. 1 root root      118 Feb 29 00:23 elasticsearch-shard
-rwxr-xr-x. 1 root root      427 Feb 29 00:23 elasticsearch-sql-cli
-rwxr-xr-x. 1 root root 19982467 Feb 29 00:23 elasticsearch-sql-cli-7.6.1.jar
-rwxr-xr-x. 1 root root      426 Feb 29 00:23 elasticsearch-syskeygen
-rwxr-xr-x. 1 root root      426 Feb 29 00:23 elasticsearch-users
-rwxr-xr-x. 1 root root      346 Feb 29 00:23 x-pack-env
-rwxr-xr-x. 1 root root      354 Feb 29 00:23 x-pack-security-env
-rwxr-xr-x. 1 root root      353 Feb 29 00:23 x-pack-watcher-env
root@elasticsearch:/#

Could you please fix it?
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant