diff --git a/install/README.md b/install/README.md index cd7d37e..965b569 100644 --- a/install/README.md +++ b/install/README.md @@ -2,16 +2,25 @@ That is only if you want run HassIO on a generic system without our yocto images. +## Requrements + +``` +bash +socat +jq +curl +``` + ## Run Run as root: ```bash -curl -sL | bash - +curl -sL https://raw.githubusercontent.com/pvizeli/hassio-build/master/install/hassio_install | bash - ``` On a special platform they need set a machine type use: ```bash -curl -sL | bash - -m MY_MACHINE +curl -sL https://raw.githubusercontent.com/pvizeli/hassio-build/master/install/hassio_install | bash - -m MY_MACHINE ``` ## HomeAssistant docker images diff --git a/install/hassio_install b/install/hassio_install index 2a2fb1f..b8e17ea 100644 --- a/install/hassio_install +++ b/install/hassio_install @@ -13,10 +13,10 @@ BIN_DIR=/usr/bin DATA_SHARE=/usr/share/hassio # Check env -command -v docker > /dev/null 2>&1 || echo "[ERROR] Please install docker first" && exit 1 -command -v jq > /dev/null 2>&1 || echo "[ERROR] Please install jq first" && exit 1 -command -v socat > /dev/null 2>&1 || echo "[ERROR] Please install socat first" && exit 1 -command -v curl > /dev/null 2>&1 || echo "[ERROR] Please install curl first" && exit 1 +command -v docker > /dev/null 2>&1 || { echo "[ERROR] Please install docker first"; exit 1; } +command -v jq > /dev/null 2>&1 || { echo "[ERROR] Please install jq first"; exit 1; } +command -v socat > /dev/null 2>&1 || { echo "[ERROR] Please install socat first"; exit 1; } +command -v curl > /dev/null 2>&1 || { echo "[ERROR] Please install curl first"; exit 1; } # Check system options if [ command -v systemctl > /dev/null 2>&1 ]; then