Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2022-02-20 14:02:01 +01:00
committed by GitHub
parent 7e1ae6e320
commit 8cdcfec8cc

View File

@@ -124,6 +124,7 @@ mkdir -p /webui
chown abc:abc /webui chown abc:abc /webui
if bashio::config.has_value 'customUI'; then if bashio::config.has_value 'customUI'; then
if [ ! "$CUSTOMUI" = default ]; then
### Variables ### Variables
CUSTOMUI=$(bashio::config 'customUI') CUSTOMUI=$(bashio::config 'customUI')
bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option" bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option"
@@ -141,6 +142,7 @@ if bashio::config.has_value 'customUI'; then
"qb-web") "qb-web")
curl -s -S -J -L -o /webui/release.zip "$(curl -s https://api.github.com/repos/CzBiX/qb-web/releases | grep -o "http.*qb-web-.*zip")" >/dev/null curl -s -S -J -L -o /webui/release.zip "$(curl -s https://api.github.com/repos/CzBiX/qb-web/releases | grep -o "http.*qb-web-.*zip")" >/dev/null
;; ;;
esac esac
### Install WebUI ### Install WebUI
@@ -154,6 +156,7 @@ if bashio::config.has_value 'customUI'; then
# Set nginx # Set nginx
#sed -i "s=/vuetorrent/public/=$CUSTOMUIDIR/public/=g" /etc/nginx/servers/ingress.conf #sed -i "s=/vuetorrent/public/=$CUSTOMUIDIR/public/=g" /etc/nginx/servers/ingress.conf
#sed -i "s=vue.torrent=$CUSTOMUI.torrent=g" /etc/nginx/servers/ingress.conf #sed -i "s=vue.torrent=$CUSTOMUI.torrent=g" /etc/nginx/servers/ingress.conf
fi
fi fi