Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2021-11-02 20:23:17 +01:00
committed by GitHub
parent 58a1a31b9d
commit 0b08b66015

View File

@@ -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
##########