mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
Restore
This commit is contained in:
@@ -152,6 +152,11 @@ if [ ! "$CUSTOMUI" = custom ]; then
|
||||
chown "$PUID:$PGID" /webui
|
||||
fi
|
||||
|
||||
# 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
|
||||
|
||||
# Install webui
|
||||
if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$CUSTOMUI" = custom ]; then
|
||||
### Variables
|
||||
|
||||
@@ -71,9 +71,9 @@ if bashio::config.true 'openvpn_enabled'; then
|
||||
|
||||
# Define preferences line
|
||||
cd /config/addons_config/qBittorrent/ || exit 1
|
||||
LINE=$(sed -n '/Preferences/=' "$QBT_CONFIG_FILE")
|
||||
LINE=$(sed -n '/\[Preferences\]/=' "$QBT_CONFIG_FILE")
|
||||
LINE=$((LINE + 1))
|
||||
SESSION=$(sed -n '/BitTorrent/=' "$QBT_CONFIG_FILE")
|
||||
SESSION=$(sed -n '/\[BitTorrent\]/=' "$QBT_CONFIG_FILE")
|
||||
|
||||
# If qBittorrent.conf exists
|
||||
if [ -f "$QBT_CONFIG_FILE" ]; then
|
||||
|
||||
Reference in New Issue
Block a user