diff --git a/setup/so-functions b/setup/so-functions index 0ba19b207..0d7805f31 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -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() {