mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
more detection improvements
This commit is contained in:
@@ -917,12 +917,16 @@ create_repo() {
|
||||
logCmd "createrepo /nsm/repo"
|
||||
}
|
||||
|
||||
|
||||
detect_cloud() {
|
||||
info "Testing if setup is running on a cloud instance..."
|
||||
if dmidecode -s bios-version | grep -q amazon || \
|
||||
dmidecode -s bios-vendor | grep -q Amazon || \
|
||||
dmidecode -s bios-vendor | grep -q Google || \
|
||||
[ -f /var/log/waagent.log ]; then
|
||||
info "Detected a cloud installation..." && export is_cloud="true";
|
||||
|
||||
info "Detected a cloud installation..."
|
||||
export is_cloud="true"
|
||||
else
|
||||
info "This does not appear to be a cloud installation."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user