check machine type (#68)

* check machine type

* Update hassio_install.sh
This commit is contained in:
Pascal Vizeli 2020-01-15 14:47:42 +01:00 committed by GitHub
parent a82a44af1d
commit 611e0e3661
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,6 +115,11 @@ if [ -z "${HOMEASSISTANT_DOCKER}" ]; then
echo "[Error] Found no Home Assistant Docker images for this host!" echo "[Error] Found no Home Assistant Docker images for this host!"
fi fi
if [[ ! "intel-nuc odroid-c2 odroid-n2 odroid-xu qemuarm qemuarm-64 qemux86 qemux86-64 raspberrypi raspberrypi2 raspberrypi3 raspberrypi4 raspberrypi3-64 raspberrypi4-64 tinker" = *"${MACHINE}"* ]]; then
echo "[Error] Unknown machine type ${MACHINE}!"
exit 1
fi
### Main ### Main
# Init folders # Init folders