From 90a619c90e495c300026b88d0a81ba63c9896d99 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Dec 2020 16:28:45 +0100 Subject: [PATCH 1/7] Update config.json --- transmission/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmission/config.json b/transmission/config.json index 9f2721b61..4ea3e1726 100644 --- a/transmission/config.json +++ b/transmission/config.json @@ -1,6 +1,6 @@ { "name": "Transmission NAS", - "version": "3.00-r0-ls69", + "version": "3.00-r0-ls69_", "slug": "transmission_ls", "description": "Bittorrent client based on linuxserver image.", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/transmission", From db91de4a76c751d5248d8ee5f311757a7b60e839 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Dec 2020 16:29:05 +0100 Subject: [PATCH 2/7] Update config.json --- transmission/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmission/config.json b/transmission/config.json index 4ea3e1726..9f2721b61 100644 --- a/transmission/config.json +++ b/transmission/config.json @@ -1,6 +1,6 @@ { "name": "Transmission NAS", - "version": "3.00-r0-ls69_", + "version": "3.00-r0-ls69", "slug": "transmission_ls", "description": "Bittorrent client based on linuxserver image.", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/transmission", From 89a543a5835fd426298351d41d120e4e5f1faa1c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Dec 2020 16:34:03 +0100 Subject: [PATCH 3/7] Update config.json --- transmission/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmission/config.json b/transmission/config.json index 9f2721b61..4ea3e1726 100644 --- a/transmission/config.json +++ b/transmission/config.json @@ -1,6 +1,6 @@ { "name": "Transmission NAS", - "version": "3.00-r0-ls69", + "version": "3.00-r0-ls69_", "slug": "transmission_ls", "description": "Bittorrent client based on linuxserver image.", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/transmission", From 78b45e2d01a41bebc28b52af2a5c66e4acecce87 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Dec 2020 16:34:31 +0100 Subject: [PATCH 4/7] Update config.json --- transmission/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmission/config.json b/transmission/config.json index 4ea3e1726..9f2721b61 100644 --- a/transmission/config.json +++ b/transmission/config.json @@ -1,6 +1,6 @@ { "name": "Transmission NAS", - "version": "3.00-r0-ls69_", + "version": "3.00-r0-ls69", "slug": "transmission_ls", "description": "Bittorrent client based on linuxserver image.", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/transmission", From 0bc6b18a6499a42e737b1c85c003b9205c688285 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Dec 2020 16:42:08 +0100 Subject: [PATCH 5/7] Update Dockerfile --- transmission/Dockerfile | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/transmission/Dockerfile b/transmission/Dockerfile index db7056e8e..d80f08c81 100644 --- a/transmission/Dockerfile +++ b/transmission/Dockerfile @@ -4,29 +4,6 @@ FROM $BUILD_FROM # Copy root filesystem COPY rootfs / -# Small hack needed for ingress support -# -# Transmission always uses "transmission" as a subdirectory in the URL, so the web interface can for instance be found at: -# -# http:///transmission/web/ -# -# The same goes for the RPC API, which is exposed under /transmission/rpc. When using ingress, this is not the case however -# and "transmission" directory is not part of the URL. So transmission is basically served under the root (/), e.g.: -# -# http://10.0.10.110:8123/api/hassio_ingress/rQEi5X4zJFTmZ82ghplDjsx2AoK3r2lqx0zZHHjZ69Q/ -# -# As the web UI uses a relative path when resolving the RPC endpoint, it basically becomes: -# -# http://10.0.10.110:8123/api/hassio_ingress/rQEi5X4zJFTmZ82ghplDjsx2AoK3r2lqx0zZHHjZ69Q/../rpc -# -# which obviously is: -# -# http://10.0.10.110:8123/api/hassio_ingress -# -# This will not work. The sed statement below changes the way the RPC endpoint is determined by keeping the regular endpoint -# when accessing transmission as usual, but stripping the relative part when using ingress. -RUN sed -i 's|'"'"'\.\./rpc'"'"'|window.location.pathname.endsWith("/web/") ? "../rpc" : "rpc"|' /usr/share/transmission/web/javascript/remote.js - # MOFIFY DATA PATH RUN sed -i "s|config|share/transmission|g" /etc/services.d/transmission/run From 093672dabdd819280e579aeaf0463784480940bd Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Dec 2020 16:45:12 +0100 Subject: [PATCH 6/7] addition of default settings.json --- transmission/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transmission/Dockerfile b/transmission/Dockerfile index d80f08c81..8aab32e53 100644 --- a/transmission/Dockerfile +++ b/transmission/Dockerfile @@ -5,6 +5,7 @@ FROM $BUILD_FROM COPY rootfs / # MOFIFY DATA PATH -RUN sed -i "s|config|share/transmission|g" /etc/services.d/transmission/run +RUN sed -i "s|config|share/transmission|g" /etc/services.d/transmission/run \ + && sed -i "s|config|share/transmission|g" /etc/cont-init.d/20-config VOLUME [ "/data" ] From 23a2edc7e8245f0706ab9f6337451d997b6cf352 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Dec 2020 16:59:39 +0100 Subject: [PATCH 7/7] remove UDP error --- .../etc/cont-init.d/20-transmission-configuration.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/transmission/rootfs/etc/cont-init.d/20-transmission-configuration.sh b/transmission/rootfs/etc/cont-init.d/20-transmission-configuration.sh index 30ced20da..fe57baa17 100644 --- a/transmission/rootfs/etc/cont-init.d/20-transmission-configuration.sh +++ b/transmission/rootfs/etc/cont-init.d/20-transmission-configuration.sh @@ -2,6 +2,7 @@ # ============================================================================== declare CONFIG +declare SYSCTL declare incomplete_bool declare download_dir declare incomplete_dir @@ -28,3 +29,9 @@ CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-host-whitelist-enabled\"=false") CONFIG=$(bashio::jq "${CONFIG}" ".\"bind-address-ipv4\"=\"0.0.0.0\"") echo "${CONFIG}" > /share/transmission/settings.json + +# Adapt UDP +SYSCTL=$( /etc/sysctl.conf