Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Add check to install unzip if needed #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/setup-elasticsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ if [[ -d /usr/share/elasticsearch/bin/x-pack ]]; then
echo "CA directory exists, removing..."
rm -rf /config/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 /config/ssl/docker-cluster-ca.zip -d /config/ssl

Expand Down