From 40102d1c7968730f737f2a9d4f6267e13aa9812c Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 17 Apr 2022 18:09:53 -0400 Subject: [PATCH] Update podman-homeassistant-install.sh --- setup/podman-homeassistant-install.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/setup/podman-homeassistant-install.sh b/setup/podman-homeassistant-install.sh index da39c87d..3e80c9e2 100644 --- a/setup/podman-homeassistant-install.sh +++ b/setup/podman-homeassistant-install.sh @@ -52,22 +52,15 @@ apt-get install -y sudo &>/dev/null apt-get install -y runc &>/dev/null msg_ok "Installed Dependencies" -get_latest_release() { - curl -sL https://api.github.com/repos/$1/releases/latest | grep '"tag_name":' | cut -d'"' -f4 -} - -CORE_LATEST_VERSION=$(get_latest_release "home-assistant/core") -YACHT_LATEST_VERSION=$(get_latest_release "selfhostedpro/yacht") - msg_info "Installing Podman" apt-get -y install podman &>/dev/null msg_ok "Installed Podman" -msg_info "Pulling Yacht $YACHT_LATEST_VERSION Image" +msg_info "Pulling Yacht Image" podman pull docker.io/selfhostedpro/yacht:latest &>/dev/null msg_ok "Pulled Yacht $YACHT_LATEST_VERSION Image" -msg_info "Installing Yacht $YACHT_LATEST_VERSION" +msg_info "Installing Yacht" podman volume create yacht >/dev/null podman run -d \ --privileged \ @@ -81,11 +74,11 @@ podman run -d \ selfhostedpro/yacht:latest &>/dev/null msg_ok "Installed Yacht $YACHT_LATEST_VERSION" -msg_info "Pulling Home Assistant $CORE_LATEST_VERSION Image" +msg_info "Pulling Home Assistant Image" podman pull docker.io/homeassistant/home-assistant:stable &>/dev/null -msg_ok "Pulled Home Assistant $CORE_LATEST_VERSION Image" +msg_ok "Pulled Home Assistant Image" -msg_info "Installing Home Assistant $CORE_LATEST_VERSION" +msg_info "Installing Home Assistant" podman volume create hass_config >/dev/null podman run -d \ --privileged \