From 1f83018d4a8978ab12a189fb89ec3eed907d8089 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 28 Oct 2022 08:21:10 +0100 Subject: [PATCH] Allow custom ui https://github.com/alexbelgium/hassio-addons/issues/527 --- .../rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9dcd71e22..9ddfcbc65 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -137,7 +137,7 @@ mkdir -p /webui chown abc:abc /webui CUSTOMUI=$(bashio::config 'customUI') -if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ]; then +if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$CUSTOMUI" = custom ]; then ### Variables bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option" @@ -163,6 +163,7 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ]; then rm /webui/*.zip CUSTOMUIDIR="$(dirname "$(find /webui/"$CUSTOMUI" -iname "public" -type d)")" # Set qbittorrent + if [[ sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/addons_config/qBittorrent/qBittorrent.conf sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/addons_config/qBittorrent/qBittorrent.conf # Set nginx