diff --git a/README.md b/README.md index caf1ad9..dcafc95 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ This method is considered advanced and should only be used if one is an expert i Run as root (sudo su): ```bash -curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s +curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh +bash installer.sh ``` ### Command line arguments @@ -26,10 +27,11 @@ curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/m | -p \| --prefix | /usr | Binary prefix for hass.io installation | | -s \| --sysconfdir | /etc | Configuration directory for hass.io installation | -you can set these parameters by appending ` -- ` like: +you can set these parameters by appending ` -- ` like: ```bash -curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s -- -m MY_MACHINE +curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh +bash installer.sh --machine MY_MACHINE ``` ## Supported Machine types diff --git a/installer.sh b/installer.sh index 766ba85..0708e3c 100644 --- a/installer.sh +++ b/installer.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -declare -a MISSING_PACKGES +declare -a MISSING_PACKAGES function info { echo -e "\e[32m[info] $*\e[39m"; } function warn { echo -e "\e[33m[warn] $*\e[39m"; } @@ -71,7 +71,7 @@ fi # Detect wrong docker logger config if [ ! -f "$FILE_DOCKER_CONF" ]; then # Write default configuration - info "Creating default docker deamon configuration $FILE_DOCKER_CONF" + info "Creating default docker daemon configuration $FILE_DOCKER_CONF" curl -sL ${URL_DOCKER_DAEMON} > "${FILE_DOCKER_CONF}" # Restart Docker service