mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-24 00:43:28 +01:00
discover appliance model grain during setup
This commit is contained in:
@@ -770,11 +770,12 @@ check_requirements() {
|
||||
}
|
||||
|
||||
check_sos_appliance() {
|
||||
title "Is this is an SOS Appliance?"
|
||||
if [ -f "/etc/SOSMODEL" ]; then
|
||||
local MODEL=$(cat /etc/SOSMODEL)
|
||||
info "Found SOS Model $MODEL"
|
||||
echo "sosmodel: $MODEL" >> /etc/salt/grains
|
||||
local MODEL=$(cat /etc/SOSMODEL)
|
||||
info "Found SOS Model $MODEL"
|
||||
echo "sosmodel: $MODEL" >> /etc/salt/grains
|
||||
else
|
||||
info "Not an appliance"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user