hacs.sh 637 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. echo -e "\e[1;33m This script will install Home Assistant Community Store (HACS) \e[0m"
  3. while true; do
  4. read -p "Start the HACS Install Script (y/n)?" yn
  5. case $yn in
  6. [Yy]* ) break;;
  7. [Nn]* ) exit;;
  8. * ) echo "Please answer yes or no.";;
  9. esac
  10. done
  11. apt update &>/dev/null
  12. apt install unzip &>/dev/null
  13. cd /var/lib/docker/volumes/hass_config/_data
  14. wget -O - https://get.hacs.xyz | bash -
  15. # To install HACS run the following from the container (LXC) console
  16. # bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/hacs.sh)"
  17. # Then add the integration in HA