mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +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() {
|
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user