mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-24 08:16:04 +02:00
Update 91-qbittorrent_configuration.sh
This commit is contained in:
@@ -162,10 +162,16 @@ if [ ! "$CUSTOMUI" = custom ]; then
|
|||||||
chown "$PUID:$PGID" /webui
|
chown "$PUID:$PGID" /webui
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update ingress webui
|
# Clean data if not custom
|
||||||
curl -f -s -S -O -J -L "$(curl -f -s https://api.github.com/repos/WDaan/VueTorrent/releases | grep -o "http.*vuetorrent.zip" | head -1)" >/dev/null
|
if [ ! "$CUSTOMUI" = default ]; then
|
||||||
unzip -o vuetorrent.zip -d / >/dev/null
|
bashio::log.warning "Default Webui selected ! It will not work for ingress, which will stay with vuetorrent"
|
||||||
rm vuetorrent.zip
|
sed -i '/AlternativeUIEnabled/d' qBittorrent.conf
|
||||||
|
sed -i '/RootFolder/d' qBittorrent.conf
|
||||||
|
# Update ingress webui
|
||||||
|
curl -f -s -S -O -J -L "$(curl -f -s https://api.github.com/repos/WDaan/VueTorrent/releases | grep -o "http.*vuetorrent.zip" | head -1)" >/dev/null
|
||||||
|
unzip -o vuetorrent.zip -d / >/dev/null
|
||||||
|
rm vuetorrent.zip
|
||||||
|
fi
|
||||||
|
|
||||||
# Install webui
|
# Install webui
|
||||||
if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$CUSTOMUI" = custom ]; then
|
if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$CUSTOMUI" = custom ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user