From 2972e86e46f8eb7adc4aefd98ad921202db49558 Mon Sep 17 00:00:00 2001 From: Jason Yee Date: Fri, 27 Sep 2019 10:32:09 +0900 Subject: [PATCH] Update setup-elasticsearch.sh Add the unzip https://github.com/elastic/stack-docker/issues/95 --- scripts/setup-elasticsearch.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/setup-elasticsearch.sh b/scripts/setup-elasticsearch.sh index b7c606e..8125f0c 100755 --- a/scripts/setup-elasticsearch.sh +++ b/scripts/setup-elasticsearch.sh @@ -31,6 +31,11 @@ if [[ -f bin/elasticsearch-users ]]; then echo "CA directory exists, removing..." rm -rf $configdir/certs/ssl/ca fi + echo "Install unzip if needed..." + if ! command -v unzip &>/dev/null; then + yum -qy install unzip + fi + echo "Unzip ca files..." unzip $configdir/certs/ssl/docker-cluster-ca.zip -d $configdir/certs/ssl