Create hacs.sh

pull/17/head
tteckster 2022-01-18 19:29:49 -05:00 committed by GitHub
parent 57c0fbeb02
commit 2e7cbf54a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
misc/hacs.sh 100644
View File

@ -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 /var/lib/docker/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/hacs.sh)"
# Then add the integration in HA