Added support for ProxMoxToolKitAppUpdate, fixed isues in hass confiig
Hass ct config home dir and ping intergration
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
mkdir -p /opt/HomeAssistant/srv
|
||||
mkdir -p /opt/HomeAssistant/data/custom_components/hacs
|
||||
touch /opt/HomeAssistant/data/home-assistant.log
|
||||
adduser --system --shell /bin/sh --home /opt/HomeAssistant/data hass
|
||||
adduser --system --shell /bin/sh --home /opt/HomeAssistant hass
|
||||
chown -R hass:hass /opt/HomeAssistant
|
||||
su hass -c 'python3 -m venv /opt/HomeAssistant/srv'
|
||||
|
||||
@@ -22,4 +22,5 @@ rm -rf /usr/lib/python3.13/__pycache__/*
|
||||
|
||||
#Setup HomeAssistant service
|
||||
mv /opt/Setup/Configs/hass.service /etc/systemd/system/hass.service
|
||||
systemctl enable hass
|
||||
systemctl enable hass
|
||||
setcap cap_net_raw+p /bin/ping
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
systemctl stop hass
|
||||
sudo -u hass sh -c '. /opt/HomeAssistant/srv/bin/activate && pip install --upgrade pip && pip3 install --upgrade homeassistant'
|
||||
service start hass
|
||||
systemctl start hass
|
||||
|
||||
Reference in New Issue
Block a user