mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Hostname based config
This commit is contained in:
@@ -1,40 +1,51 @@
|
|||||||
|
|
||||||
## 4.4.5-r3-ls229 (14-11-2022)
|
## 4.4.5-r3-ls229 (14-11-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r2-ls227 (08-11-2022)
|
## 4.4.5-r2-ls227 (08-11-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r2-ls226 (01-11-2022)
|
## 4.4.5-r2-ls226 (01-11-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r2-ls224 (25-10-2022)
|
## 4.4.5-r2-ls224 (25-10-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r1-ls223 (20-10-2022)
|
## 4.4.5-r1-ls223 (20-10-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r0-ls222 (18-10-2022)
|
## 4.4.5-r0-ls222 (18-10-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r0-ls221 (11-10-2022)
|
## 4.4.5-r0-ls221 (11-10-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r0-ls219 (04-10-2022)
|
## 4.4.5-r0-ls219 (04-10-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r0-ls218 (27-09-2022)
|
## 4.4.5-r0-ls218 (27-09-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r0-ls217 (22-09-2022)
|
## 4.4.5-r0-ls217 (22-09-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r0-ls216 (20-09-2022)
|
## 4.4.5-r0-ls216 (20-09-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r0-ls215 (13-09-2022)
|
## 4.4.5-r0-ls215 (13-09-2022)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-qbittorrent
|
- Update to latest version from linuxserver/docker-qbittorrent
|
||||||
- Config folder moved to /config/addons_config/qBittorrent
|
- Config folder moved to /config/addons_config/qbittorrent
|
||||||
|
|
||||||
## 4.4.5-r0-ls214 (09-09-2022)
|
## 4.4.5-r0-ls214 (09-09-2022)
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkdir -p /config/addons_config/qBittorrent
|
mkdir -p /config/addons_config/qbittorrent
|
||||||
|
|
||||||
if [ -f /config/addons_config/qBittorrent/qBittorrent.conf ]; then
|
if [ -f /config/addons_config/qBittorrent/qBittorrent.conf ]; then
|
||||||
echo "Migrating previous folder"
|
echo "Migrating previous folder"
|
||||||
mkdir -p /config/addons_config/qbittorrent
|
|
||||||
cp -prf /config/addons_config/qBittorrent/* /config/addons_config/qbittorrent/
|
cp -prf /config/addons_config/qBittorrent/* /config/addons_config/qbittorrent/
|
||||||
rm -r /config/addons_config/qBittorrent
|
rm -r /config/addons_config/qBittorrent
|
||||||
echo "Files were moved to /config/addons_config/qbittorrent" > /config/addons_config/qBittorrent/filesmoved
|
echo "Files were moved to /config/addons_config/qbittorrent" > /config/addons_config/qBittorrent/filesmoved
|
||||||
|
|||||||
@@ -6,14 +6,14 @@
|
|||||||
##########
|
##########
|
||||||
|
|
||||||
# Define preferences line
|
# Define preferences line
|
||||||
mkdir -p /config/addons_config/qBittorrent
|
mkdir -p /config/addons_config/qbittorrent
|
||||||
|
|
||||||
# copy default config
|
# copy default config
|
||||||
if [ ! -f /config/addons_config/qBittorrent/qBittorrent.conf ]; then
|
if [ ! -f /config/addons_config/qbittorrent/qBittorrent.conf ]; then
|
||||||
cp /defaults/qBittorrent.conf /config/addons_config/qBittorrent/qBittorrent.conf
|
cp /defaults/qBittorrent.conf /config/addons_config/qbittorrent/qBittorrent.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /config/addons_config/qBittorrent/ || true
|
cd /config/addons_config/qbittorrent/ || true
|
||||||
LINE=$(sed -n '/Preferences/=' qBittorrent.conf)
|
LINE=$(sed -n '/Preferences/=' qBittorrent.conf)
|
||||||
LINE=$((LINE + 1))
|
LINE=$((LINE + 1))
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ fi
|
|||||||
# WHITELIST #
|
# WHITELIST #
|
||||||
################
|
################
|
||||||
|
|
||||||
cd /config/addons_config/qBittorrent/ || true
|
cd /config/addons_config/qbittorrent/ || true
|
||||||
if bashio::config.has_value 'whitelist'; then
|
if bashio::config.has_value 'whitelist'; then
|
||||||
WHITELIST=$(bashio::config 'whitelist')
|
WHITELIST=$(bashio::config 'whitelist')
|
||||||
#clean data
|
#clean data
|
||||||
@@ -115,7 +115,7 @@ fi
|
|||||||
# USERNAME #
|
# USERNAME #
|
||||||
###############
|
###############
|
||||||
|
|
||||||
cd /config/addons_config/qBittorrent/ || true
|
cd /config/addons_config/qbittorrent/ || true
|
||||||
if bashio::config.has_value 'Username'; then
|
if bashio::config.has_value 'Username'; then
|
||||||
USERNAME=$(bashio::config 'Username')
|
USERNAME=$(bashio::config 'Username')
|
||||||
#clean data
|
#clean data
|
||||||
@@ -167,8 +167,8 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
|
|||||||
rm /webui/*.zip
|
rm /webui/*.zip
|
||||||
CUSTOMUIDIR="$(dirname "$(find /webui/"$CUSTOMUI" -iname "public" -type d)")"
|
CUSTOMUIDIR="$(dirname "$(find /webui/"$CUSTOMUI" -iname "public" -type d)")"
|
||||||
# Set qbittorrent
|
# Set qbittorrent
|
||||||
sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/addons_config/qBittorrent/qBittorrent.conf
|
sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/addons_config/qbittorrent/qBittorrent.conf
|
||||||
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/addons_config/qBittorrent/qBittorrent.conf
|
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/addons_config/qbittorrent/qBittorrent.conf
|
||||||
# Set nginx
|
# Set nginx
|
||||||
#sed -i "s=/vuetorrent/public/=$CUSTOMUIDIR/public/=g" /etc/nginx/servers/ingress.conf
|
#sed -i "s=/vuetorrent/public/=$CUSTOMUIDIR/public/=g" /etc/nginx/servers/ingress.conf
|
||||||
#sed -i "s=vue.torrent=$CUSTOMUI.torrent=g" /etc/nginx/servers/ingress.conf
|
#sed -i "s=vue.torrent=$CUSTOMUI.torrent=g" /etc/nginx/servers/ingress.conf
|
||||||
@@ -180,4 +180,4 @@ fi
|
|||||||
##########
|
##########
|
||||||
|
|
||||||
bashio::log.info "Default username/password : admin/adminadmin"
|
bashio::log.info "Default username/password : admin/adminadmin"
|
||||||
bashio::log.info "Configuration can be found in /config/addons_config/qBittorrent"
|
bashio::log.info "Configuration can be found in /config/addons_config/qbittorrent"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ declare openvpn_config
|
|||||||
declare openvpn_username
|
declare openvpn_username
|
||||||
declare openvpn_password
|
declare openvpn_password
|
||||||
|
|
||||||
QBT_CONFIG_FILE="/config/addons_config/qBittorrent/qBittorrent.conf"
|
QBT_CONFIG_FILE="/config/addons_config/qbittorrent/qBittorrent.conf"
|
||||||
|
|
||||||
if bashio::config.true 'openvpn_enabled'; then
|
if bashio::config.true 'openvpn_enabled'; then
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
echo "Using interface binding in the qBittorrent app"
|
echo "Using interface binding in the qBittorrent app"
|
||||||
|
|
||||||
# Define preferences line
|
# Define preferences line
|
||||||
cd /config/addons_config/qBittorrent/ || exit 1
|
cd /config/addons_config/qbittorrent/ || exit 1
|
||||||
LINE=$(sed -n '/Preferences/=' "$QBT_CONFIG_FILE")
|
LINE=$(sed -n '/Preferences/=' "$QBT_CONFIG_FILE")
|
||||||
LINE=$((LINE + 1))
|
LINE=$((LINE + 1))
|
||||||
SESSION=$(sed -n '/BitTorrent/=' "$QBT_CONFIG_FILE")
|
SESSION=$(sed -n '/BitTorrent/=' "$QBT_CONFIG_FILE")
|
||||||
|
|||||||
Reference in New Issue
Block a user