provide custom cloud detection path

This commit is contained in:
Jason Ertel
2023-05-26 08:05:34 -04:00
parent 9aa58be286
commit a2e6469a38

View File

@@ -927,7 +927,8 @@ create_repo() {
detect_cloud() {
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 Google || \
[ -f /var/log/waagent.log ]; then