From c99f19251b6b7ddd30653b5fc50a3f6b261c8dd4 Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Tue, 2 May 2023 17:04:41 -0400 Subject: [PATCH] More visibility --- setup/so-functions | 6 +++--- setup/so-setup | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 8bd738830..1a04607ea 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -965,11 +965,11 @@ detect_os() { download_elastic_agent_artifacts() { #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/" } diff --git a/setup/so-setup b/setup/so-setup index 0cc19d990..654484334 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -606,6 +606,7 @@ if ! [[ -f $install_opt_file ]]; then # Create the local repo and point the box to use the local repo securityonion_repo # Download Elastic Agent Artifacts + title "Downloading Elastic Agent Artifacts" download_elastic_agent_artifacts # Update existing packages update_packages