mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 19:52:51 +01:00
provide custom cloud detection path
This commit is contained in:
@@ -927,7 +927,8 @@ create_repo() {
|
|||||||
|
|
||||||
detect_cloud() {
|
detect_cloud() {
|
||||||
info "Testing if setup is running on a cloud instance..."
|
info "Testing if setup is running on a cloud instance..."
|
||||||
if dmidecode -s bios-version 2>&1 | grep -q amazon || \
|
if [ -f /etc/SOCLOUD ] || \
|
||||||
|
dmidecode -s bios-version 2>&1 | grep -q amazon || \
|
||||||
dmidecode -s bios-vendor 2>&1 | grep -q Amazon || \
|
dmidecode -s bios-vendor 2>&1 | grep -q Amazon || \
|
||||||
dmidecode -s bios-vendor 2>&1 | grep -q Google || \
|
dmidecode -s bios-vendor 2>&1 | grep -q Google || \
|
||||||
[ -f /var/log/waagent.log ]; then
|
[ -f /var/log/waagent.log ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user