mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
refactor airgap playbook to eliminate dupe code and shrink ISO
This commit is contained in:
@@ -56,12 +56,6 @@ airgap_detection_summaries() {
|
||||
logCmd "git config --global --add safe.directory /opt/so/conf/soc/ai_summary_repos/securityonion-resources"
|
||||
logCmd "git -C /opt/so/conf/soc/ai_summary_repos/securityonion-resources checkout generated-summaries-published"
|
||||
}
|
||||
airgap_playbooks() {
|
||||
# Copy playbooks if using airgap
|
||||
mkdir -p /nsm/airgap-resources/playbooks
|
||||
logCmd "rsync -av --chown=socore:socore /root/SecurityOnion/airgap-resources/playbooks/ /nsm/airgap-resources/playbooks/"
|
||||
logCmd "git config --global --add safe.directory /nsm/airgap-resources/playbooks"
|
||||
}
|
||||
|
||||
add_admin_user() {
|
||||
title "Adding $ADMINUSER to the system with sudo rights"
|
||||
|
||||
@@ -771,7 +771,7 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
fi
|
||||
if [[ $is_airgap ]]; then
|
||||
title "Syncing Playbooks"
|
||||
airgap_playbooks
|
||||
airgap_playbooks /root/SecurityOnion
|
||||
fi
|
||||
title "Setting up Kibana Default Space"
|
||||
logCmd "so-kibana-space-defaults"
|
||||
|
||||
Reference in New Issue
Block a user