From e65d67ed2c327f7797bf232e137c631b13bd4316 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 17 Dec 2024 07:53:43 +0100 Subject: [PATCH] Change web control https://github.com/alexbelgium/hassio-addons/issues/1668 --- transmission/rootfs/etc/cont-init.d/90-customUI.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/transmission/rootfs/etc/cont-init.d/90-customUI.sh b/transmission/rootfs/etc/cont-init.d/90-customUI.sh index ad8077596b9..bdcc03a4eee 100755 --- a/transmission/rootfs/etc/cont-init.d/90-customUI.sh +++ b/transmission/rootfs/etc/cont-init.d/90-customUI.sh @@ -25,13 +25,9 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C ;; "transmission-web-control") - curl -f -s -S -J -L -o /release.zip "$(curl -f -s -L https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | grep -o "http.*dist.zip" | head -1)" >/dev/null ### Install WebUI mkdir -p /transmission-web-control - unzip -q /release.zip -d /transmission-web-control - mv /transmission-web-control/dist/* /transmission-web-control - rm -r /transmission-web-control/dist - rm /release.zip + curl -sL $(curl -s https://api.github.com/repos/ronggang/transmission-web-control/releases/latest | jq --raw-output '.tarball_url') | tar -C /transmission-web-control/ --strip-components=2 -xz \ # Enables the original UI button in transmission-web-control ln -s /usr/share/transmission/public_html/* /transmission-web-control/ 2>/dev/null || true ln -s /usr/share/transmission/public_html/index.html /transmission-web-control/index.original.html