mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-19 05:49:12 +02:00
Merge pull request #1173 from akrigator/patch-1
Update 91-qbittorrent_configuration.sh
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
- Fix : failure to install custom webUI https://github.com/alexbelgium/hassio-addons/issues/1172 (thanks @akrigator)
|
||||||
- [qbit_manage] : switch to develop
|
- [qbit_manage] : switch to develop
|
||||||
|
|
||||||
### 4.6.2_40 (31-12-2023)
|
### 4.6.2_40 (31-12-2023)
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ if [ "$CUSTOMUI" = default ]; then
|
|||||||
sed -i '/AlternativeUIEnabled/d' qBittorrent.conf
|
sed -i '/AlternativeUIEnabled/d' qBittorrent.conf
|
||||||
sed -i '/RootFolder/d' qBittorrent.conf
|
sed -i '/RootFolder/d' qBittorrent.conf
|
||||||
# Update ingress webui
|
# 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
|
curl -f -s -S -O -J -L "$(curl -f -s -L https://api.github.com/repos/WDaan/VueTorrent/releases | grep -o "http.*vuetorrent.zip" | head -1)" >/dev/null
|
||||||
unzip -o vuetorrent.zip -d / >/dev/null
|
unzip -o vuetorrent.zip -d / >/dev/null
|
||||||
rm vuetorrent.zip
|
rm vuetorrent.zip
|
||||||
fi
|
fi
|
||||||
@@ -203,21 +203,21 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
|
|||||||
### Download WebUI
|
### Download WebUI
|
||||||
case $CUSTOMUI in
|
case $CUSTOMUI in
|
||||||
"vuetorrent")
|
"vuetorrent")
|
||||||
curl -f -s -S -J -L -o /webui/release.zip "$(curl -f -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | grep -o "http.*vuetorrent.zip" | head -1)" >/dev/null
|
curl -f -s -S -J -L -o /webui/release.zip "$(curl -f -s -L https://api.github.com/repos/WDaan/VueTorrent/releases/latest | grep -o "http.*vuetorrent.zip" | head -1)" >/dev/null
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"qbit-matUI")
|
"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
|
curl -f -s -S -J -L -o /webui/release.zip "$(curl -f -s -L https://api.github.com/repos/bill-ahmed/qbit-matUI/releases/latest | grep -o "http.*Unix.*.zip" | head -1)" >/dev/null
|
||||||
echo ""
|
echo ""
|
||||||
bashio::log.warning "qbit-matUI selected ! It will not work for ingress, which will stay with vuetorrent"
|
bashio::log.warning "qbit-matUI selected ! It will not work for ingress, which will stay with vuetorrent"
|
||||||
echo ""
|
echo ""
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"qb-web")
|
"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
|
curl -f -s -S -J -L -o /webui/release.zip "$(curl -f -s -L https://api.github.com/repos/CzBiX/qb-web/releases | grep -o "http.*qb-web-.*zip" | head -1)" >/dev/null
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac || { bashio::log.warning "$CUSTOMUI could not be downloaded, please raise an issue on the github repository. The default UI will be used" && exit 0 ; }
|
||||||
|
|
||||||
### Install WebUI
|
### Install WebUI
|
||||||
mkdir -p /webui/"$CUSTOMUI"
|
mkdir -p /webui/"$CUSTOMUI"
|
||||||
|
|||||||
Reference in New Issue
Block a user