Skip to content

Commit

Permalink
Removed get_latest_version in favor of a fixed version for ES
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Oct 23, 2024
1 parent b9b1f25 commit 4fd4466
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions start-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ random_password() {
echo $(LC_ALL=C tr -dc 'A-Za-z0-9' < /dev/urandom | head -c ${LENGTH})
}

# Returns the latest Elasticsearch tag version
get_latest_version() {
local tags="$(curl -s "https://api.github.com/repos/elastic/elasticsearch/tags")"
local latest="$(echo "$tags" | grep -m 1 '"name"' | grep -Eo '[0-9.]+')"
echo $latest
}

# Create an API key for Elasticsearch
# parameter 1: the Elasticsearch password
# parameter 2: name of the API key to generate
Expand Down Expand Up @@ -317,7 +310,7 @@ generate_passwords_api_keys() {
# Generate random passwords
es_password="$(random_password)"
kibana_password="$(random_password)"
es_version="$(get_latest_version)"
es_version="8.15.3"
kibana_encryption_key="$(random_password 32)"
}

Expand Down

0 comments on commit 4fd4466

Please sign in to comment.