From 48aff374a3b3ed8f4c911ae45d5fecfccd9382fa Mon Sep 17 00:00:00 2001 From: defensivedepth Date: Tue, 24 Sep 2024 15:37:43 -0400 Subject: [PATCH] Use temp summaries branch --- setup/so-functions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup/so-functions b/setup/so-functions index 5693abcb3..cf50c887a 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -45,7 +45,14 @@ airgap_rules() { # Copy the rules for detections if using Airgap mkdir -p /nsm/rules rsync -av --exclude='securityonion-resources' /root/SecurityOnion/agrules/ /nsm/rules/ + + # Copy over the securityonion-resources repo rsync -av /root/SecurityOnion/agrules/securityonion-resources/ /nsm/ + + # Copy summaries over to SOC and checkout the correct branch + rsync -av --chown=socore:socore /nsm/securityonion-resources/* /opt/so/conf/soc/ai_summary_repos + git config --global --add safe.directory /opt/so/conf/soc/ai_summary_repos/securityonion-resources + git -C /opt/so/conf/soc/ai_summary_repos/securityonion-resources checkout staging/generated-summaries-stable } add_admin_user() {