Skip to content

Commit

Permalink
Merge pull request #13740 from Security-Onion-Solutions/2.4/agfix
Browse files Browse the repository at this point in the history
Fix location for airgap
  • Loading branch information
defensivedepth authored Sep 26, 2024
2 parents 8af086c + fe86048 commit 4211200
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions salt/manager/tools/sbin/soup
Original file line number Diff line number Diff line change
Expand Up @@ -888,11 +888,11 @@ update_airgap_rules() {
rsync -av $UPDATE_DIR/agrules/suricata/* /nsm/rules/suricata/
rsync -av $UPDATE_DIR/agrules/detect-sigma/* /nsm/rules/detect-sigma/
rsync -av $UPDATE_DIR/agrules/detect-yara/* /nsm/rules/detect-yara/
# Checkout the stable summaries branch and copy them over for SOC
git -C $UPDATE_DIR/agrules/securityonion-resources/ checkout generated-summaries-published
rsync -av $UPDATE_DIR/agrules/securityonion-resources/* /opt/so/conf/soc/ai_summary_repos
# Checkout the main branch and copy them over to nsm
git -C $UPDATE_DIR/agrules/securityonion-resources/ checkout main
# Copy the securityonion-resorces repo over for SOC Detection Summaries and checkout the published summaries branch
rsync -av --chown=socore:socore $UPDATE_DIR/agrules/securityonion-resources /opt/so/conf/soc/ai_summary_repos
git config --global --add safe.directory /opt/so/conf/soc/ai_summary_repos
git -C /opt/so/conf/soc/ai_summary_repos/securityonion-resources checkout generated-summaries-published
# Copy the securityonion-resorces repo over to nsm
rsync -av $UPDATE_DIR/agrules/securityonion-resources/* /nsm/securityonion-resources/
}

Expand Down
4 changes: 2 additions & 2 deletions setup/so-functions
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ airgap_rules() {
rsync -av /root/SecurityOnion/agrules/ /nsm/rules/

# Copy over the securityonion-resources repo
rsync -av /root/SecurityOnion/agrules/securityonion-resources/ /nsm/
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
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 generated-summaries-published
}
Expand Down

0 comments on commit 4211200

Please sign in to comment.