mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 23:55:56 +02:00
birdnet-pipy: use 0.5.0-2 version suffix
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
|
|
||||||
|
## 0.5.0-2 (2026-02-14)
|
||||||
|
- Skip ingress nginx configuration when ingress is not active (empty/invalid ingress port)
|
||||||
|
|
||||||
## 0.5.0 (2026-02-14)
|
## 0.5.0 (2026-02-14)
|
||||||
- Update to latest version from Suncuss/BirdNET-PiPy (changelog : https://github.com/Suncuss/BirdNET-PiPy/releases)
|
- Update to latest version from Suncuss/BirdNET-PiPy (changelog : https://github.com/Suncuss/BirdNET-PiPy/releases)
|
||||||
|
|
||||||
|
|||||||
@@ -99,5 +99,5 @@ schema:
|
|||||||
ssl: bool?
|
ssl: bool?
|
||||||
slug: birdnet-pipy
|
slug: birdnet-pipy
|
||||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pipy
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pipy
|
||||||
version: "0.5.0"
|
version: "0.5.0-2"
|
||||||
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"
|
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ ingress_port="$(bashio::addon.ingress_port)"
|
|||||||
ingress_interface="$(bashio::addon.ip_address)"
|
ingress_interface="$(bashio::addon.ip_address)"
|
||||||
ingress_entry="$(bashio::addon.ingress_entry)"
|
ingress_entry="$(bashio::addon.ingress_entry)"
|
||||||
|
|
||||||
|
if ! [[ "${ingress_port}" =~ ^[0-9]+$ ]] || [[ "${ingress_port}" -le 0 ]]; then
|
||||||
|
bashio::log.info "Ingress not active, skipping ingress nginx configuration"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s|proxy_pass http://api|proxy_pass http://127.0.0.1|g" \
|
-e "s|proxy_pass http://api|proxy_pass http://127.0.0.1|g" \
|
||||||
-e "s|proxy_pass http://icecast|proxy_pass http://127.0.0.1|g" \
|
-e "s|proxy_pass http://icecast|proxy_pass http://127.0.0.1|g" \
|
||||||
|
|||||||
Reference in New Issue
Block a user