mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-29 17:21:44 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97c4f8ad8b | ||
|
|
e937f6d555 | ||
|
|
68f990f7df | ||
|
|
91bb34d206 | ||
|
|
d118eccf6f | ||
|
|
d1f9725ec0 | ||
|
|
1f82a63b69 |
No files matched your search
@@ -1,3 +1,7 @@
|
||||
## 5.2.0-8 (12-05-2026)
|
||||
- Minor bugs fixed
|
||||
## 5.2.0-7 (12-05-2026)
|
||||
- Minor bugs fixed
|
||||
## 5.2.0-6 (12-05-2026)
|
||||
- Minor bugs fixed
|
||||
|
||||
|
||||
@@ -143,4 +143,4 @@ schema:
|
||||
slug: qbittorrent
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "5.2.0-6"
|
||||
version: "5.2.0-8"
|
||||
@@ -44,10 +44,6 @@ fi
|
||||
|
||||
bashio::log.info "Starting qBittorrent..."
|
||||
|
||||
if [ -f /etc/s6-overlay/s6-rc.d/svc-qbittorrent/notification-fd ]; then
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
||||
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
|
||||
else
|
||||
exec s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
|
||||
fi
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
||||
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
|
||||
@@ -279,16 +279,6 @@ _wireguard_up() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Clean up any leftover state from a previous run (e.g., after an S6 service restart).
|
||||
# Without this, `ip link add` and `ip rule add` fail with "RTNETLINK answers: File exists"
|
||||
# when the svc-qbittorrent service is restarted while the WireGuard interface is still up.
|
||||
if ip link show "${config["Interface"]}" > /dev/null 2>&1; then
|
||||
bashio::log.info "WireGuard interface ${config["Interface"]} already exists. Cleaning up before re-establishing connection."
|
||||
ip link set "${config["Interface"]}" down 2>/dev/null || true
|
||||
ip link del "${config["Interface"]}" 2>/dev/null || true
|
||||
fi
|
||||
_routing_del 2>/dev/null || true
|
||||
|
||||
_cmd "ip link add ${config["Interface"]} type wireguard" || return 1
|
||||
|
||||
mapfile -d ',' -t local_ips < <(echo "${config["Address"]}" | tr -d ' ')
|
||||
|
||||
Reference in new issue
Block a user