Shell script to install Elasticsearch throws error when install X-Pack with 'yes' Shell script to install Elasticsearch throws error when install X-Pack with 'yes' elasticsearch elasticsearch

Shell script to install Elasticsearch throws error when install X-Pack with 'yes'


Looks like you need to 'echo' your 'yes'

echo "y" | sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack