Merge pull request #10266 from Security-Onion-Solutions/jertel/aws

more detection improvements
This commit is contained in:
Jason Ertel
2023-05-02 08:17:13 -04:00
committed by GitHub

View File

@@ -1123,16 +1123,17 @@ create_repo() {
} }
detect_cloud() { detect_cloud() {
echo "Testing if setup is running on a cloud instance..." | tee -a "$setup_log" echo "Testing if setup is running on a cloud instance..." | tee -a "$setup_log"
if dmidecode -s bios-version | grep -q amazon || \ if dmidecode -s bios-version | grep -q amazon || \
dmidecode -s bios-vendor | grep -q Google || \ dmidecode -s bios-vendor | grep -q Amazon || \
[ -f /var/log/waagent.log ]; then dmidecode -s bios-vendor | grep -q Google || \
[ -f /var/log/waagent.log ]; then
echo "Detected a cloud installation." | tee -a "$setup_log" echo "Detected a cloud installation." | tee -a "$setup_log"
export is_cloud="true" export is_cloud="true"
else else
echo "This does not appear to be a cloud installation." | tee -a "$setup_log" echo "This does not appear to be a cloud installation." | tee -a "$setup_log"
fi fi
} }
detect_os() { detect_os() {