From 0d1970977a9580fc1b0f61e4d1f1cfeb965436e0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 29 Sep 2022 11:00:34 -0400 Subject: [PATCH] Create hacs-core.sh --- misc/hacs-core.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 misc/hacs-core.sh diff --git a/misc/hacs-core.sh b/misc/hacs-core.sh new file mode 100644 index 00000000..b6374539 --- /dev/null +++ b/misc/hacs-core.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +echo -e "\e[1;33m This script will install Home Assistant Community Store (HACS) \e[0m" + +while true; do + read -p "Start the HACS Install Script (y/n)?" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done + +apt update &>/dev/null +apt install unzip &>/dev/null +cd .homeassistant +wget -O - https://get.hacs.xyz | bash - + +# To install HACS run the following from the container (LXC) console +# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/hacs-core.sh)" +# Then add the integration in HA