mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Move Airgap later in setup
This commit is contained in:
@@ -48,11 +48,13 @@ airgap_rules() {
|
|||||||
|
|
||||||
# Copy over the securityonion-resources repo
|
# 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
|
airgap_detection_summaries() {
|
||||||
|
# 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 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
|
git -C /opt/so/conf/soc/ai_summary_repos/securityonion-resources checkout generated-summaries-published
|
||||||
}
|
}
|
||||||
|
|
||||||
add_admin_user() {
|
add_admin_user() {
|
||||||
|
|||||||
@@ -763,6 +763,10 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
logCmd "salt-call state.apply suricata -l info"
|
logCmd "salt-call state.apply suricata -l info"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [[ $is_airgap ]]; then
|
||||||
|
title "Syncing AI-Generated Detection Summaries"
|
||||||
|
airgap_detection_summaries
|
||||||
|
fi
|
||||||
title "Setting up Kibana Default Space"
|
title "Setting up Kibana Default Space"
|
||||||
logCmd "so-kibana-space-defaults"
|
logCmd "so-kibana-space-defaults"
|
||||||
add_web_user
|
add_web_user
|
||||||
|
|||||||
Reference in New Issue
Block a user