More visibility

This commit is contained in:
Josh Brower
2023-05-02 17:04:41 -04:00
parent 544fa824ea
commit c99f19251b
2 changed files with 4 additions and 3 deletions

View File

@@ -965,11 +965,11 @@ detect_os() {
download_elastic_agent_artifacts() { download_elastic_agent_artifacts() {
#TODO - ISO #TODO - ISO
mkdir -p /nsm/elastic-fleet/artifacts/beats/elastic-agent/ logCmd "mkdir -p /nsm/elastic-fleet/artifacts/beats/elastic-agent/"
curl --retry 5 --retry-delay 60 https://repo.securityonion.net/file/so-repo/prod/2.4/elasticagent/elastic-agent_SO-$SOVERSION.tar.gz --output /nsm/elastic-fleet/artifacts/elastic-agent_SO-$SOVERSION.tar.gz logCmd "curl --retry 5 --retry-delay 60 https://repo.securityonion.net/file/so-repo/prod/2.4/elasticagent/elastic-agent_SO-$SOVERSION.tar.gz --output /nsm/elastic-fleet/artifacts/elastic-agent_SO-$SOVERSION.tar.gz"
tar -xf /nsm/elastic-fleet/artifacts/elastic-agent_SO-$SOVERSION.tar.gz -C /nsm/elastic-fleet/artifacts/beats/elastic-agent/ logCmd "tar -xf /nsm/elastic-fleet/artifacts/elastic-agent_SO-$SOVERSION.tar.gz -C /nsm/elastic-fleet/artifacts/beats/elastic-agent/"
} }

View File

@@ -606,6 +606,7 @@ if ! [[ -f $install_opt_file ]]; then
# Create the local repo and point the box to use the local repo # Create the local repo and point the box to use the local repo
securityonion_repo securityonion_repo
# Download Elastic Agent Artifacts # Download Elastic Agent Artifacts
title "Downloading Elastic Agent Artifacts"
download_elastic_agent_artifacts download_elastic_agent_artifacts
# Update existing packages # Update existing packages
update_packages update_packages