Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions deploy-elastic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ help() {

###############################################################################################################

# check for dependencies, if they do not exist then install them
# jq isn't included by default in Ubuntu, so this can easily be missed and break the script.
checkdependencies() {
if ! command -v jq &> /dev/null
then
sudo apt install jq
fi
}

# check for version and make sure its [6..8].x.x and assign MAJOR MINOR BUGFIX number
version() {
if [ -z ${1} ]; then
Expand Down Expand Up @@ -264,6 +273,7 @@ stack() {
echo "${green}********** Deploying elasticsearch & kibana "${VERSION}" **********${reset}"

# some checks first
checkdependencies
checkmaxmapcount
checkdocker
checkcontainer
Expand Down