From 98c1d2185d91ce24ee04cf2c601c11bd67d0c062 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 10 Feb 2021 07:00:14 +0100 Subject: [PATCH] Update 91-configuration.sh --- .../rootfs/etc/cont-init.d/91-configuration.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/91-configuration.sh b/qbittorrent/rootfs/etc/cont-init.d/91-configuration.sh index dbf23a7a3..e9c55c783 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/91-configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-configuration.sh @@ -38,10 +38,10 @@ CUSTOMUI=$(bashio::config 'customUI') ### IF VUETORRENT if [ CUSTOMUI="vuetorrent" ];then CUSTOMUI="WDaan/VueTorrent" -wget -O release.zip $(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | grep -o "http.*release.zip") +curl -J -L -o /release.zip $(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | grep -o "http.*release.zip") mkdir -p /data/$CUSTOMUI -unzip release.zip -o -d /data/$CUSTOMUI/ -rm *.zip +unzip -o /release.zip -d /data/$CUSTOMUI/ +rm /*.zip CUSTOMUIDIR=$(find /data/$CUSTOMUI -iname "public" -type d) FOLDER="$(dirname "$CUSTOMUIDIR")" sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/qBittorrent/qBittorrent.conf @@ -51,10 +51,10 @@ fi ### IF qbit-matUI if [ CUSTOMUI="qbit-matUI" ];then CUSTOMUI="bill-ahmed/qbit-matUI" -wget -O release.zip $(curl -s https://api.github.com/repos/bill-ahmed/qbit-matUI/releases/latest | grep -o "http.*Unix.*.zip") +curl -J -L -o /release.zip $(curl -s https://api.github.com/repos/bill-ahmed/qbit-matUI/releases/latest | grep -o "http.*Unix.*.zip") mkdir -p /data/$CUSTOMUI -unzip release.zip -o -d /data/$CUSTOMUI/ -rm *.zip +unzip -o /release.zip -d /data/$CUSTOMUI/ +rm /*.zip CUSTOMUIDIR=$(find /data/$CUSTOMUI -iname "public" -type d) FOLDER="$(dirname "$CUSTOMUIDIR")" sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/qBittorrent/qBittorrent.conf