Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2023-11-23 11:18:10 +01:00
committed by GitHub
parent 8b573db87d
commit 194a8a9bf4

View File

@@ -164,7 +164,9 @@ fi
# Clean data if not custom
if [ "$CUSTOMUI" = default ]; then
echo ""
bashio::log.warning "Default Webui selected ! It will not work for ingress, which will stay with vuetorrent"
echo ""
sed -i '/AlternativeUIEnabled/d' qBittorrent.conf
sed -i '/RootFolder/d' qBittorrent.conf
# Update ingress webui
@@ -186,20 +188,15 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
"qbit-matUI")
curl -f -s -S -J -L -o /webui/release.zip "$(curl -f -s https://api.github.com/repos/bill-ahmed/qbit-matUI/releases/latest | grep -o "http.*Unix.*.zip" | head -1)" >/dev/null
echo ""
bashio::log.warning "qbit-matUI selected ! It will not work for ingress, which will stay with vuetorrent"
echo ""
;;
"qb-web")
curl -f -s -S -J -L -o /webui/release.zip "$(curl -f -s https://api.github.com/repos/CzBiX/qb-web/releases | grep -o "http.*qb-web-.*zip" | head -1)" >/dev/null
;;
"iQbit")
curl -f -s -S -J -L -o /webui/release.zip "https://github.com/ntoporcov/iQbit/archive/master.zip" >/dev/null
;;
"DarkLight")
curl -f -s -S -J -L -o /webui/release.zip "$(curl -f -s https://api.github.com/repos/crash0verride11/DarkLight-qBittorent-WebUI/releases | grep -o "http.*www.zip" | head -1)" >/dev/null
;;
esac
### Install WebUI