From 0b08b66015a6b2323b38d8d64afad120f27a71d5 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 2 Nov 2021 20:23:17 +0100 Subject: [PATCH] Update 91-qbittorrent_configuration.sh --- .../rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh index 0bd3fad35..0b4df60b5 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -130,8 +130,13 @@ if bashio::config.has_value 'customUI'; then unzip -q /webui/release.zip -d /webui/$CUSTOMUI rm /webui/*.zip CUSTOMUIDIR="$(dirname "$(find /webui/$CUSTOMUI -iname "public" -type d)")" + # Set qbittorrent sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/qBittorrent/qBittorrent.conf sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/qBittorrent/qBittorrent.conf + # Set nginx + echo "ui set to $CUSTOMUIDIR" + sed -i 's=/vuetorrent/public/=$CUSTOMUIDIR=g' /etc/nginx/servers/ingress.conf + fi ##########