2022-01-19 00:31:23 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-12-17 14:47:13 +00:00
|
|
|
if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Can't Run from the Proxmox Shell"; exit; fi
|
2022-01-19 00:31:23 +00:00
|
|
|
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
|
2022-10-30 01:04:45 +00:00
|
|
|
[Yy]*) break ;;
|
|
|
|
[Nn]*) exit ;;
|
|
|
|
*) echo "Please answer yes or no." ;;
|
2022-01-19 00:31:23 +00:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
apt update &>/dev/null
|
|
|
|
apt install unzip &>/dev/null
|
|
|
|
cd /var/lib/containers/storage/volumes/hass_config/_data
|
|
|
|
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/podman_hacs.sh)"
|
|
|
|
# Then add the integration in HA
|