mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Update 91-qbittorrent_configuration.sh
This commit is contained in:
@@ -130,8 +130,13 @@ if bashio::config.has_value 'customUI'; then
|
|||||||
unzip -q /webui/release.zip -d /webui/$CUSTOMUI
|
unzip -q /webui/release.zip -d /webui/$CUSTOMUI
|
||||||
rm /webui/*.zip
|
rm /webui/*.zip
|
||||||
CUSTOMUIDIR="$(dirname "$(find /webui/$CUSTOMUI -iname "public" -type d)")"
|
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\\\AlternativeUIEnabled=true" /config/qBittorrent/qBittorrent.conf
|
||||||
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /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
|
fi
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|||||||
Reference in New Issue
Block a user