mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Detect if this is an SOS appliance
This commit is contained in:
@@ -734,6 +734,15 @@ check_requirements() {
|
||||
fi
|
||||
}
|
||||
|
||||
check_sos_appliance() {
|
||||
# Lets see if this is a SOS Appliance
|
||||
if [ -f "/etc/SOSMODEL"]; then
|
||||
local MODEL=$(cat /etc/SOSMODEL)
|
||||
echo "Found SOS Model $MODEL"
|
||||
echo "sosmodel: $MODEL" >> /etc/salt/grains
|
||||
fi
|
||||
}
|
||||
|
||||
compare_main_nic_ip() {
|
||||
if [[ "$MAINIP" != "$MNIC_IP" ]]; then
|
||||
read -r -d '' message <<- EOM
|
||||
|
||||
@@ -604,6 +604,7 @@ set_redirect >> $setup_log 2>&1
|
||||
|
||||
set_progress_str 8 'Initializing Salt minion'
|
||||
configure_minion "$minion_type" >> $setup_log 2>&1
|
||||
check_sos_appliance >> $setup_log 2>&1
|
||||
|
||||
update_sudoers_for_testing >> $setup_log 2>&1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user