Update 91-configuration.sh

This commit is contained in:
Alexandre
2021-02-10 12:40:06 +01:00
committed by GitHub
parent 009fb86731
commit 899bf4efab

View File

@@ -74,8 +74,7 @@ if bashio::config.has_value 'customUI'; then
mkdir -p /data/webui/$CUSTOMUI
unzip -u -q /data/webui/release.zip -d /data/webui/$CUSTOMUI
rm /data/webui/*.zip
CUSTOMUIDIR=$(find /data/webui/$CUSTOMUI -iname "public" -type d)
CUSTOMUIDIR="$(dirname "$CUSTOMUIDIR")"
CUSTOMUIDIR="$(dirname "$(find /data/webui/$CUSTOMUI -iname "public" -type d)")"
sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/qBittorrent/qBittorrent.conf
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/qBittorrent/qBittorrent.conf
fi