mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 91-configuration.sh
This commit is contained in:
@@ -80,8 +80,8 @@ fi
|
|||||||
# Clean data
|
# Clean data
|
||||||
sed -i '/AlternativeUIEnabled/d' qBittorrent.conf
|
sed -i '/AlternativeUIEnabled/d' qBittorrent.conf
|
||||||
sed -i '/RootFolder/d' qBittorrent.conf
|
sed -i '/RootFolder/d' qBittorrent.conf
|
||||||
rm -f -r /data/webui
|
rm -f -r /webui
|
||||||
mkdir -p /data/webui
|
mkdir -p /webui
|
||||||
|
|
||||||
if bashio::config.has_value 'customUI'; then
|
if bashio::config.has_value 'customUI'; then
|
||||||
### Variables
|
### Variables
|
||||||
@@ -91,24 +91,24 @@ if bashio::config.has_value 'customUI'; then
|
|||||||
### Download WebUI
|
### Download WebUI
|
||||||
case $CUSTOMUI in
|
case $CUSTOMUI in
|
||||||
"vuetorrent")
|
"vuetorrent")
|
||||||
curl -s -S -J -L -o /data/webui/release.zip $(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | grep -o "http.*vuetorrent.zip") >/dev/null \
|
curl -s -S -J -L -o /webui/release.zip $(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | grep -o "http.*vuetorrent.zip") >/dev/null \
|
||||||
|| curl -s -S -J -L -o /data/webui/release.zip $(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | grep -o "http.*release.zip") >/dev/null \
|
|| curl -s -S -J -L -o /webui/release.zip $(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | grep -o "http.*release.zip") >/dev/null \
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"qbit-matUI")
|
"qbit-matUI")
|
||||||
curl -s -S -J -L -o /data/webui/release.zip $(curl -s https://api.github.com/repos/bill-ahmed/qbit-matUI/releases/latest | grep -o "http.*Unix.*.zip") >/dev/null
|
curl -s -S -J -L -o /webui/release.zip $(curl -s https://api.github.com/repos/bill-ahmed/qbit-matUI/releases/latest | grep -o "http.*Unix.*.zip") >/dev/null
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"qb-web")
|
"qb-web")
|
||||||
curl -s -S -J -L -o /data/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
|
||||||
mkdir -p /data/webui/$CUSTOMUI
|
mkdir -p /webui/$CUSTOMUI
|
||||||
unzip -q /data/webui/release.zip -d /data/webui/$CUSTOMUI
|
unzip -q /webui/release.zip -d /webui/$CUSTOMUI
|
||||||
rm /data/webui/*.zip
|
rm /webui/*.zip
|
||||||
CUSTOMUIDIR="$(dirname "$(find /data/webui/$CUSTOMUI -iname "public" -type d)")"
|
CUSTOMUIDIR="$(dirname "$(find /webui/$CUSTOMUI -iname "public" -type d)")"
|
||||||
sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/qBittorrent/qBittorrent.conf
|
sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/qBittorrent/qBittorrent.conf
|
||||||
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/qBittorrent/qBittorrent.conf
|
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/qBittorrent/qBittorrent.conf
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user