grab es version from defaults during soup

This commit is contained in:
m0duspwnens
2024-09-06 09:04:43 -04:00
parent 576d218cd9
commit fc25bfe0df
2 changed files with 4 additions and 2 deletions

View File

@@ -677,7 +677,8 @@ has_uppercase() {
}
update_elastic_agent() {
get_elastic_agent_vars
local path="${1:-/opt/so/saltstack/default}"
get_elastic_agent_vars "$path"
echo "Checking if Elastic Agent update is necessary..."
download_and_verify "$ELASTIC_AGENT_URL" "$ELASTIC_AGENT_MD5_URL" "$ELASTIC_AGENT_FILE" "$ELASTIC_AGENT_MD5" "$ELASTIC_AGENT_EXPANSION_DIR"
}