CT Linkwarden: Fixed linkwarden version url
This commit is contained in:
@@ -8,28 +8,7 @@ adduser -h /opt/HomeAssistant/data -D -G hass -s /bin/sh hass
|
|||||||
chown -R hass:hass /opt/HomeAssistant
|
chown -R hass:hass /opt/HomeAssistant
|
||||||
sudo -u hass python3 -m venv /opt/HomeAssistant/srv
|
sudo -u hass python3 -m venv /opt/HomeAssistant/srv
|
||||||
|
|
||||||
#Fix broken Pyton module (It will not install with pyton 3.12 on a Musl system)
|
sudo -u hass sh -c '. /opt/HomeAssistant/srv/bin/activate && pip install --upgrade pip && pip3 install wheel mysqlclient && pip3 install homeassistant'
|
||||||
wget https://codeload.github.com/rhasspy/webrtc-noise-gain/tar.gz/refs/tags/v1.2.3 -O /tmp/webrtc-noise-gain.tar.gz || exit 1
|
|
||||||
tar -C /tmp -xzf /tmp/webrtc-noise-gain.tar.gz
|
|
||||||
patch /tmp/webrtc-noise-gain-1.2.3/webrtc-audio-processing/webrtc-audio-processing-1/rtc_base/system/file_wrapper.h << EOF
|
|
||||||
--- <webrtc-audio-processing/webrtc-audio-processing-1/rtc_base/system/file_wrapper.h>
|
|
||||||
+++ <webrtc-audio-processing/webrtc-audio-processing-1/rtc_base/system/file_wrapper.h>
|
|
||||||
@@ -13,6 +13,7 @@
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
+#include <cstdint>
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
|
||||||
chown hass: -R /tmp/webrtc-noise-gain-1.2.3
|
|
||||||
sudo -u hass sh -c '. /opt/HomeAssistant/srv/bin/activate && pip install /tmp/webrtc-noise-gain-1.2.3'
|
|
||||||
rm -rf /tmp/webrtc-noise-gain.tar.gz /tmp/webrtc-noise-gain-1.2.3
|
|
||||||
##End of fix (Remove when pyton module updates)
|
|
||||||
|
|
||||||
sudo -u hass sh -c '. /opt/HomeAssistant/srv/bin/activate && pip install --upgrade pip && pip3 install wheel mutagen numpy mysqlclient && pip3 install homeassistant'
|
|
||||||
|
|
||||||
#Install Home Assistant Community Store
|
#Install Home Assistant Community Store
|
||||||
wget https://github.com/hacs/integration/releases/latest/download/hacs.zip -O /tmp/hacs.zip
|
wget https://github.com/hacs/integration/releases/latest/download/hacs.zip -O /tmp/hacs.zip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
CurLinkwardenVersion=$(curl -s https://api.github.com/repos/Y2Z/monolith/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d : )
|
CurLinkwardenVersion=$(curl -s https://api.github.com/repos/linkwarden/linkwarden/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d : )
|
||||||
|
|
||||||
if test "$CurLinkwardenVersion" = "$(cat /opt/linkwarden-Version)" ; then
|
if test "$CurLinkwardenVersion" = "$(cat /opt/linkwarden-Version)" ; then
|
||||||
echo 'Linkwarden is up-to-date'
|
echo 'Linkwarden is up-to-date'
|
||||||
|
|||||||
Reference in New Issue
Block a user