From 0742112952b315870d92a10cd08aefa95b13c0b8 Mon Sep 17 00:00:00 2001 From: NobleKangaroo <34781835+NobleKangaroo@users.noreply.github.com> Date: Mon, 19 Oct 2020 03:23:06 -0400 Subject: [PATCH 1/4] Fix typos (#120) --- installer.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/installer.sh b/installer.sh index 58dd631..ed353bb 100644 --- a/installer.sh +++ b/installer.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -declare -a MISSING_PACAKGES +declare -a MISSING_PACKAGES function info { echo -e "\e[32m[info] $*\e[39m"; } function warn { echo -e "\e[33m[warn] $*\e[39m"; } @@ -47,20 +47,20 @@ URL_SERVICE_HASSIO="${URL_RAW_BASE}/hassio-supervisor.service" URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt" # Check env -command -v systemctl > /dev/null 2>&1 || MISSING_PACAKGES+=("systemd") -command -v nmcli > /dev/null 2>&1 || MISSING_PACAKGES+=("NetworkManager") -command -v apparmor_parser > /dev/null 2>&1 || MISSING_PACAKGES+=("AppArmor") -command -v docker > /dev/null 2>&1 || MISSING_PACAKGES+=("docker") -command -v jq > /dev/null 2>&1 || MISSING_PACAKGES+=("jq") -command -v curl > /dev/null 2>&1 || MISSING_PACAKGES+=("curl") -command -v avahi-daemon > /dev/null 2>&1 || MISSING_PACAKGES+=("avahi") -command -v dbus-daemon > /dev/null 2>&1 || MISSING_PACAKGES+=("dbus") +command -v systemctl > /dev/null 2>&1 || MISSING_PACKAGES+=("systemd") +command -v nmcli > /dev/null 2>&1 || MISSING_PACKAGES+=("NetworkManager") +command -v apparmor_parser > /dev/null 2>&1 || MISSING_PACKAGES+=("AppArmor") +command -v docker > /dev/null 2>&1 || MISSING_PACKAGES+=("docker") +command -v jq > /dev/null 2>&1 || MISSING_PACKAGES+=("jq") +command -v curl > /dev/null 2>&1 || MISSING_PACKAGES+=("curl") +command -v avahi-daemon > /dev/null 2>&1 || MISSING_PACKAGES+=("avahi") +command -v dbus-daemon > /dev/null 2>&1 || MISSING_PACKAGES+=("dbus") -if [ ! -z "${MISSING_PACAKGES}" ]; then +if [ ! -z "${MISSING_PACKAGES}" ]; then warn "The following is missing on the host and needs " warn "to be installed and configured before running this script again" - error "missing: ${MISSING_PACAKGES[@]}" + error "missing: ${MISSING_PACKAGES[@]}" fi # Check if Modem Manager is enabled From 1af6b7249af2c5946ac39b6a6eaf55f72459b0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 19 Oct 2020 20:19:54 +0200 Subject: [PATCH 2/4] Update example to not pipe curl (#121) * Update example * Updated to use curl --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index caf1ad9..d4f182c 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 --mmachine MY_MACHINE ``` ## Supported Machine types From 242291a7103116757257faf9063817f6eadfa7c3 Mon Sep 17 00:00:00 2001 From: Dmytro Shvaika Date: Tue, 20 Oct 2020 00:45:00 +0300 Subject: [PATCH 3/4] typo in README.md (#122) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d4f182c..dcafc95 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ you can set these parameters by appending ` -- ` like: ```bash curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh -bash installer.sh --mmachine MY_MACHINE +bash installer.sh --machine MY_MACHINE ``` ## Supported Machine types From 5916fa75ad738fa0c3884cefc7aa7f9010e4eaa0 Mon Sep 17 00:00:00 2001 From: Alec Rust Date: Sun, 25 Oct 2020 13:47:54 +0000 Subject: [PATCH 4/4] Fix daemon typo (#125) --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index ed353bb..2dcfdea 100644 --- a/installer.sh +++ b/installer.sh @@ -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