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