瀏覽代碼

Add files via upload

tteckster 3 年之前
父節點
當前提交
8c438e26ff
共有 2 個文件被更改,包括 31 次插入0 次删除
  1. 11 0
      Podman_HACS.md
  2. 20 0
      podman_hacs.sh

+ 11 - 0
Podman_HACS.md

@@ -0,0 +1,11 @@
+<h1 align="center" id="heading"> Home Assistant Community Store </h1>
+
+<p align="center"><img src="https://assets.hacs.xyz/logo.svg" width="100" height="100"/></p>
+
+<h3 align="center"> ⚠️ This script is for installing HACS on Podman Home Assistant Container LXC ONLY ⚠️</h3>
+
+Run the following from the Home Assistant Container LXC console
+```
+bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/podman_hacs.sh)"
+```
+After install, reboot Home Assistant and **clear browser cache** then Add HACS integration.

+ 20 - 0
podman_hacs.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 /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/podman_hacs.sh)"
+# Then add the integration in HA