mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #10266 from Security-Onion-Solutions/jertel/aws
more detection improvements
This commit is contained in:
@@ -1123,16 +1123,17 @@ create_repo() {
|
||||
}
|
||||
|
||||
detect_cloud() {
|
||||
echo "Testing if setup is running on a cloud instance..." | tee -a "$setup_log"
|
||||
if dmidecode -s bios-version | grep -q amazon || \
|
||||
dmidecode -s bios-vendor | grep -q Google || \
|
||||
[ -f /var/log/waagent.log ]; then
|
||||
echo "Testing if setup is running on a cloud instance..." | tee -a "$setup_log"
|
||||
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
|
||||
|
||||
echo "Detected a cloud installation." | tee -a "$setup_log"
|
||||
export is_cloud="true"
|
||||
else
|
||||
echo "This does not appear to be a cloud installation." | tee -a "$setup_log"
|
||||
fi
|
||||
echo "Detected a cloud installation." | tee -a "$setup_log"
|
||||
export is_cloud="true"
|
||||
else
|
||||
echo "This does not appear to be a cloud installation." | tee -a "$setup_log"
|
||||
fi
|
||||
}
|
||||
|
||||
detect_os() {
|
||||
|
||||
Reference in New Issue
Block a user