Added support for ProxMoxToolKitAppUpdate, fixed isues in hass confiig
Hass ct config home dir and ping intergration
This commit is contained in:
@@ -307,5 +307,14 @@ actions:
|
||||
echo "Europe/Amsterdam" > /etc/timezone
|
||||
ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
|
||||
|
||||
|
||||
#Move App update script for ProxmoxHelper/ProxMoxToolKit, if CT has this script
|
||||
- trigger: post-files
|
||||
action: |-
|
||||
#!/bin/sh
|
||||
if test -f /opt/Setup/Scripts/PTKAppUpdate.sh ; then
|
||||
mv /opt/Setup/Scripts/PTKAppUpdate.sh /opt/ProxMoxToolKitAppUpdate.sh
|
||||
fi
|
||||
|
||||
mappings:
|
||||
architecture_map: alpinelinux
|
||||
|
||||
@@ -177,5 +177,13 @@ actions:
|
||||
# Cleanup temporary shadow paths
|
||||
rm /etc/*-
|
||||
|
||||
#Move App update script for ProxmoxHelper/ProxMoxToolKit, if CT has this script
|
||||
- trigger: post-files
|
||||
action: |-
|
||||
#!/bin/sh
|
||||
if test -f /opt/Setup/Scripts/PTKAppUpdate.sh ; then
|
||||
mv /opt/Setup/Scripts/PTKAppUpdate.sh /opt/ProxMoxToolKitAppUpdate.sh
|
||||
fi
|
||||
|
||||
mappings:
|
||||
architecture_map: debian
|
||||
|
||||
@@ -199,4 +199,12 @@ actions:
|
||||
bash /opt/Setup/Scripts/Init.sh || exit 1
|
||||
rm /opt/Setup/Scripts/Init.sh
|
||||
variants:
|
||||
- hass
|
||||
- hass
|
||||
|
||||
#Move App update script for ProxmoxHelper/ProxMoxToolKit, if CT has this script
|
||||
- trigger: post-files
|
||||
action: |-
|
||||
#!/bin/sh
|
||||
if test -f /opt/Setup/Scripts/PTKAppUpdate.sh ; then
|
||||
mv /opt/Setup/Scripts/PTKAppUpdate.sh /opt/ProxMoxToolKitAppUpdate.sh
|
||||
fi
|
||||
@@ -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