From e0ee7e84a2263b18565db59c25ee0c34762eada7 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sun, 13 May 2018 16:03:06 +0200 Subject: [PATCH] fix password handling --- elasticsearch-xpack/elasticsearch-xpack.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elasticsearch-xpack/elasticsearch-xpack.spec b/elasticsearch-xpack/elasticsearch-xpack.spec index 056f36c37d..e7be8f0d3e 100644 --- a/elasticsearch-xpack/elasticsearch-xpack.spec +++ b/elasticsearch-xpack/elasticsearch-xpack.spec @@ -157,13 +157,13 @@ PreReq: elasticsearch -a -i "$RPM_INSTALL_PREFIX:elasticsearch-xpack" -p "#" $conf su - %{l_rusr} -c \ "LC_CTYPE=C; export LC_CTYPE; umask 077; \ - echo elasticsearch | $RPM_INSTALL_PREFIX/bin/elasticsearch-keystore add \ + echo -n elasticsearch | $RPM_INSTALL_PREFIX/bin/elasticsearch-keystore add \ -s -x xpack.security.http.ssl.keystore.secure_password; \ - echo elasticsearch | $RPM_INSTALL_PREFIX/bin/elasticsearch-keystore add \ + echo -n elasticsearch | $RPM_INSTALL_PREFIX/bin/elasticsearch-keystore add \ -s -x xpack.security.http.ssl.truststore.secure_password; \ - echo elasticsearch | $RPM_INSTALL_PREFIX/bin/elasticsearch-keystore add \ + echo -n elasticsearch | $RPM_INSTALL_PREFIX/bin/elasticsearch-keystore add \ -s -x xpack.security.transport.ssl.keystore.secure_password; \ - echo elasticsearch | $RPM_INSTALL_PREFIX/bin/elasticsearch-keystore add \ + echo -n elasticsearch | $RPM_INSTALL_PREFIX/bin/elasticsearch-keystore add \ -s -x xpack.security.transport.ssl.truststore.secure_password" fi