mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-19 07:11:50 +02:00
Use CONFIG_LOCATION only for migration
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
|
||||
## 2.58.02-1 (09-01-2026)
|
||||
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/tdarr to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-tdarr. Please make a backup before updating.
|
||||
|
||||
## 2.58.02 (24-12-2025)
|
||||
- Update to latest version from haveagitgat/tdarr
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ The server port is `8266` for connecting external Tdarr nodes.
|
||||
|
||||
| Option | Type | Default | Description |
|
||||
|--------|------|---------|-------------|
|
||||
| `CONFIG_LOCATION` | str | `/config/addons_config/tdarr` | Path where Tdarr config is stored |
|
||||
| `CONFIG_LOCATION` | str | `/addon_configs/xxx-tdarr` | Path where Tdarr config is stored |
|
||||
| `TZ` | str | | Timezone (e.g., `Europe/London`) |
|
||||
| `localdisks` | str | | Local drives to mount (e.g., `sda1,sdb1,MYNAS`) |
|
||||
| `networkdisks` | str | | SMB shares to mount (e.g., `//SERVER/SHARE`) |
|
||||
@@ -73,7 +73,7 @@ The server port is `8266` for connecting external Tdarr nodes.
|
||||
### Example Configuration
|
||||
|
||||
```yaml
|
||||
CONFIG_LOCATION: "/config/addons_config/tdarr"
|
||||
CONFIG_LOCATION: "/addon_configs/xxx-tdarr"
|
||||
TZ: "Europe/London"
|
||||
localdisks: "sda1,sdb1"
|
||||
networkdisks: "//192.168.1.100/media,//nas.local/transcoding"
|
||||
@@ -130,4 +130,3 @@ Configure hardware acceleration in the Tdarr Web UI under Settings > FFmpeg/Hand
|
||||
|
||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||
|
||||
|
||||
|
||||
@@ -88,7 +88,8 @@ image: ghcr.io/alexbelgium/tdarr-{arch}
|
||||
init: false
|
||||
map:
|
||||
- media:rw
|
||||
- config:rw
|
||||
- addon_config:rw
|
||||
- homeassistant_config:rw
|
||||
- addons:rw
|
||||
- backup:rw
|
||||
- share:rw
|
||||
@@ -96,7 +97,7 @@ map:
|
||||
name: Tdarr
|
||||
options:
|
||||
env_vars: []
|
||||
CONFIG_LOCATION: /config/addons_config/tdarr
|
||||
CONFIG_LOCATION: /config
|
||||
panel_admin: false
|
||||
panel_icon: mdi:file-search
|
||||
ports:
|
||||
@@ -122,6 +123,6 @@ schema:
|
||||
slug: tdarr
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "2.58.02"
|
||||
version: "2.58.02-1"
|
||||
video: true
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:8265]"
|
||||
|
||||
@@ -25,7 +25,25 @@ bashio::log.info "Setting PUID=$PUID, PGID=$PGID"
|
||||
cd /
|
||||
|
||||
# Config location
|
||||
CONFIGLOCATION="$(bashio::config 'CONFIG_LOCATION')"
|
||||
CONFIGLOCATION="/config"
|
||||
legacy_path="/homeassistant/addons_config/tdarr"
|
||||
target_path="$CONFIGLOCATION"
|
||||
|
||||
mkdir -p "$target_path"
|
||||
|
||||
# Use custom location for migration only if configured
|
||||
if bashio::config.has_value 'CONFIG_LOCATION' && [ "$(bashio::config 'CONFIG_LOCATION')" != "/config" ]; then
|
||||
legacy_path="$(bashio::config 'CONFIG_LOCATION')"
|
||||
fi
|
||||
|
||||
# Migrate legacy config
|
||||
if [ -d "$legacy_path" ]; then
|
||||
if [ ! -f "$legacy_path/.migrated" ] || [ -z "$(ls -A "$target_path" 2>/dev/null)" ]; then
|
||||
echo "Migrating $legacy_path to $target_path"
|
||||
cp -rnf "$legacy_path"/. "$target_path"/ || true
|
||||
touch "$legacy_path/.migrated"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create folder
|
||||
mkdir -p "$CONFIGLOCATION"
|
||||
|
||||
Reference in New Issue
Block a user