We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe7818a commit 60d33cdCopy full SHA for 60d33cd
distribution/docker/src/docker/bin/docker-entrypoint.sh
@@ -50,8 +50,7 @@ if [[ -f bin/elasticsearch-users ]]; then
50
# keystore requires password
51
if ! (echo "$KEYSTORE_PASSWORD" \
52
| elasticsearch-keystore list | grep -q '^bootstrap.password$') ; then
53
- COMMANDS="$(printf "%s\n%s" "$KEYSTORE_PASSWORD" "$ELASTIC_PASSWORD")"
54
- (echo "$COMMANDS" | elasticsearch-keystore add -x 'bootstrap.password')
+ (echo "$KEYSTORE_PASSWORD" | elasticsearch-keystore add-file 'bootstrap.password' <(echo -n "$ELASTIC_PASSWORD"))
55
fi
56
57
0 commit comments