[Onboarding] Auto-detect. Delete previous download artifacts. (#189365)

Closes https://github.com/elastic/kibana/issues/189266

Adds a line to remove previously downloaded and extracted Elastic Agent.
This commit is contained in:
Mykola Harmash 2024-07-30 10:25:36 +02:00 committed by GitHub
parent 4c49ccf480
commit 65069a5cf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,6 +148,7 @@ update_step_progress() {
download_elastic_agent() {
local download_url="https://artifacts.elastic.co/downloads/beats/elastic-agent/${elastic_agent_artifact_name}.tar.gz"
rm -rf "./${elastic_agent_artifact_name}" "./${elastic_agent_artifact_name}.tar.gz"
curl -L -O $download_url --silent --fail
if [ "$?" -eq 0 ]; then