2020-02-03 16:44:55 +08:00
|
|
|
#!/bin/bash
|
|
|
|
cd /usr/share/elasticsearch/bin/
|
|
|
|
./elasticsearch-users useradd x_pack_rest_user -p x-pack-test-password -r superuser || true
|
|
|
|
echo "testnode" > /tmp/password
|
2020-12-24 03:00:49 +08:00
|
|
|
cat /tmp/password | ./elasticsearch-keystore add -x -f -v 'xpack.security.transport.ssl.secure_key_passphrase'
|
|
|
|
cat /tmp/password | ./elasticsearch-keystore add -x -f -v 'xpack.security.http.ssl.secure_key_passphrase'
|
2020-10-12 21:58:01 +08:00
|
|
|
/usr/local/bin/docker-entrypoint.sh | tee /usr/share/elasticsearch/logs/console.log
|