podman_hacs.sh 752 B

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