From 1efbe23f2add8851a43ef9990e54d43f33ccf553 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 26 Nov 2023 18:28:52 +0100 Subject: [PATCH] Update 90-customUI.sh --- transmission/rootfs/etc/cont-init.d/90-customUI.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 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 40e184800..10b63953c 100755 --- a/transmission/rootfs/etc/cont-init.d/90-customUI.sh +++ b/transmission/rootfs/etc/cont-init.d/90-customUI.sh @@ -25,11 +25,13 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C ;; "transmission-web-control") - mkdir -p /tmp/twctemp && \ - TWCVERSION=$(curl -s "https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest" | jq -r .tag_name) - curl -o /tmp/twc.tar.gz -L "https://github.com/transmission-web-control/transmission-web-control/archive/${TWCVERSION}.tar.gz" - tar xf /tmp/twc.tar.gz -C /tmp/twctemp --strip-components=1 - mv /tmp/twctemp/src /transmission-web-control + curl -f -s -S -J -L -o /release.zip "$(curl -f -s 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 /transmission-web-control/dist + rm /release.zip # Enables the original UI button in transmission-web-control ln -s /usr/share/transmission/web/style /transmission-web-control && \ ln -s /usr/share/transmission/web/images /transmission-web-control && \