1 Commits

Author SHA1 Message Date
Alexandre
adc11a9b3b Ensure mktemp parent directory exists 2026-01-09 09:22:49 +01:00
33 changed files with 89 additions and 229 deletions

View File

@@ -32,7 +32,13 @@ fi
BLOCK_BEGIN="# --- BEGIN ADDON ENV (generated) ---"
BLOCK_END="# --- END ADDON ENV (generated) ---"
EXPORT_BLOCK_FILE="$(mktemp)"
mktemp_safe() {
local tmpdir="${TMPDIR:-/tmp}"
mkdir -p "$tmpdir"
mktemp -p "$tmpdir"
}
EXPORT_BLOCK_FILE="$(mktemp_safe)"
trap 'rm -f "$EXPORT_BLOCK_FILE"' EXIT
{
@@ -148,7 +154,7 @@ is_shell_run_script() {
inject_block_into_file() {
local file="$1"
local tmp
tmp="$(mktemp)"
tmp="$(mktemp_safe)"
awk -v bfile="${EXPORT_BLOCK_FILE}" -v begin="${BLOCK_BEGIN}" -v end="${BLOCK_END}" '
function print_block() {

View File

@@ -1,7 +1,4 @@
## debian-2025-12-04-2 (2026-01-09)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/epicgamesfree to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-epicgamesfree. Please make a backup before updating.
## debian-2025-12-02 (2025-12-02)
- Update to latest version from charlocharlie/epicgames-freegames

View File

@@ -39,7 +39,7 @@ Addon options expose the `env_vars` field for passing extra environment variable
### Configuration Files
Configuration files are stored in `/addon_configs/xxx-epicgamesfree/`:
Configuration files are stored in `/config/addons_config/epicgamesfree/`:
- **config.json**: Main configuration file
- **cookies.json**: Authentication cookies (optional)
@@ -50,7 +50,7 @@ If these files don't exist, they will be created at first boot with default sett
### Basic Configuration
Create `/addon_configs/xxx-epicgamesfree/config.json`:
Create `/config/addons_config/epicgamesfree/config.json`:
```json
{
@@ -149,7 +149,7 @@ notifications:
### Cookie Import (Optional)
You can import browser cookies to avoid login issues. Create `/addon_configs/xxx-epicgamesfree/cookies.json`:
You can import browser cookies to avoid login issues. Create `/config/addons_config/epicgamesfree/cookies.json`:
For detailed cookie import instructions, see: https://github.com/claabs/epicgames-freegames-node#cookie-import

View File

@@ -67,12 +67,11 @@ devices:
- /dev/nvme1
- /dev/nvme2
environment:
CONFIG_DIR: /config
CONFIG_DIR: /config/addons_config/epicgamesfree
image: ghcr.io/alexbelgium/epicgamesfree-{arch}
init: false
map:
- addon_config:rw
- homeassistant_config:rw
- config:rw
name: Epic Games Free
options:
env_vars: []
@@ -89,5 +88,5 @@ schema:
slug: epicgamesfree
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "debian-2025-12-04-2"
version: "debian-2025-12-02"
webui: "[PROTO:ssl]://[HOST]:[PORT:3000]"

View File

@@ -2,25 +2,7 @@
# shellcheck shell=bash
set -e
slug=epicgamesfree
legacy_path="/homeassistant/addons_config/$slug"
target_path="/config"
mkdir -p "$target_path"
if bashio::config.has_value 'CONFIG_LOCATION' && [ "$(bashio::config 'CONFIG_LOCATION')" != "/config" ]; then
legacy_path="$(bashio::config 'CONFIG_LOCATION')"
fi
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
# Define home
HOME="/config"
HOME="/config/addons_config/epicgamesfree"
mkdir -p $HOME
chmod -R 777 $HOME

View File

@@ -6,7 +6,7 @@ set -e
# Initialize #
##############
HOME="/config"
HOME="/config/addons_config/epicgamesfree"
CONFIG_JSON="$HOME/config.json"
LEGACY_YAML="$HOME/config.yaml"

View File

@@ -1,7 +1,4 @@
## 6.4.15-1 (09-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/fireflyiii to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-fireflyiii. Please make a backup before updating.
## 6.4.15 (08-01-2026)
- Update to latest version from firefly-iii/firefly-iii (changelog : https://github.com/firefly-iii/firefly-iii/releases)

View File

@@ -47,7 +47,7 @@ Configurations can be done through the app webUI, except for the following optio
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `APP_KEY` | str | `CHANGEME_32_CHARS_EuC5dfn3LAPzeO` | **CRITICAL**: 32-character encryption key - change before first run! |
| `CONFIG_LOCATION` | str | `/addon_configs/xxx-fireflyiii/config.yaml` | Location of additional config file |
| `CONFIG_LOCATION` | str | `/config/addons_config/fireflyiii/config.yaml` | Location of additional config file |
| `DB_CONNECTION` | list | `sqlite_internal` | Database type (sqlite_internal/mariadb_addon/mysql/pgsql) |
| `DB_HOST` | str | | Database host (for external databases) |
| `DB_PORT` | str | | Database port (for external databases) |
@@ -61,7 +61,7 @@ Configurations can be done through the app webUI, except for the following optio
```yaml
APP_KEY: "SomeRandomStringOf32CharsExactly"
CONFIG_LOCATION: "/addon_configs/xxx-fireflyiii/config.yaml"
CONFIG_LOCATION: "/config/addons_config/fireflyiii/config.yaml"
DB_CONNECTION: "mariadb_addon"
DB_HOST: "core-mariadb"
DB_PORT: "3306"
@@ -101,3 +101,4 @@ Create an issue on github
[repository]: https://github.com/alexbelgium/hassio-addons

View File

@@ -69,14 +69,13 @@ environment:
image: ghcr.io/alexbelgium/fireflyiii-{arch}
init: false
map:
- addon_config:rw
- homeassistant_config:rw
- config:rw
- share:rw
name: Firefly iii
options:
env_vars: []
APP_KEY: CHANGEME_32_CHARS_EuC5dfn3LAPzeO
CONFIG_LOCATION: /config/config.yaml
CONFIG_LOCATION: /config/addons_config/fireflyiii/config.yaml
DB_CONNECTION: sqlite_internal
silent: "true"
ports:
@@ -105,5 +104,5 @@ slug: fireflyiii
startup: services
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "6.4.15-1"
version: "6.4.15"
webui: "[PROTO:ssl]://[HOST]:[PORT:8080]"

View File

@@ -3,24 +3,6 @@
set -e
# hadolint ignore=SC2155
slug=fireflyiii
legacy_path="/homeassistant/addons_config/$slug"
target_path="/config"
mkdir -p "$target_path"
if bashio::config.has_value 'CONFIG_LOCATION' && [ "$(bashio::config 'CONFIG_LOCATION')" != "/config" ]; then
legacy_path="$(bashio::config 'CONFIG_LOCATION')"
fi
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
########
# Init #
########
@@ -35,24 +17,24 @@ if [[ ! "$APP_KEY" == *"base64"* ]]; then
fi
# Backup APP_KEY file
bashio::log.info "Backuping APP_KEY to /config/APP_KEY_BACKUP.txt"
bashio::log.info "Backuping APP_KEY to /config/addons_config/fireflyiii/APP_KEY_BACKUP.txt"
bashio::log.warning "Changing this value will require to reset your database"
# Get current app_key
mkdir -p /config
touch /config/APP_KEY_BACKUP.txt
CURRENT=$(sed -e '/^[<blank><tab>]*$/d' /config/APP_KEY_BACKUP.txt | sed -n -e '$p')
mkdir -p /config/addons_config/fireflyiii
touch /config/addons_config/fireflyiii/APP_KEY_BACKUP.txt
CURRENT=$(sed -e '/^[<blank><tab>]*$/d' /config/addons_config/fireflyiii/APP_KEY_BACKUP.txt | sed -n -e '$p')
# Save if new
if [ "$CURRENT" != "$APP_KEY" ]; then
echo "$APP_KEY" >> /config/APP_KEY_BACKUP.txt
echo "$APP_KEY" >> /config/addons_config/fireflyiii/APP_KEY_BACKUP.txt
fi
# Update permissions
mkdir -p /config
chown -R www-data:www-data /config
mkdir -p /config/addons_config/fireflyiii
chown -R www-data:www-data /config/addons_config/fireflyiii
chown -R www-data:www-data /var/www/html/storage
chmod -R 775 /config
chmod -R 775 /config/addons_config/fireflyiii
###################
# Define database #
@@ -67,16 +49,16 @@ case $(bashio::config 'DB_CONNECTION') in
# Set variable
export DB_CONNECTION=sqlite
export DB_DATABASE=/config/database/database.sqlite
export DB_DATABASE=/config/addons_config/fireflyiii/database/database.sqlite
# Creating folders
mkdir -p /config/database
chown -R www-data:www-data /config/database
mkdir -p /config/addons_config/fireflyiii/database
chown -R www-data:www-data /config/addons_config/fireflyiii/database
# Creating database
if [ ! -f /config/database/database.sqlite ]; then
if [ ! -f /config/addons_config/fireflyiii/database/database.sqlite ]; then
# Create database
touch /config/database/database.sqlite
touch /config/addons_config/fireflyiii/database/database.sqlite
# Install database
echo "updating database"
php artisan migrate:refresh --seed --quiet
@@ -86,11 +68,11 @@ case $(bashio::config 'DB_CONNECTION') in
# Creating symlink
rm -r /var/www/html/storage/database
ln -s /config/database /var/www/html/storage
ln -s /config/addons_config/fireflyiii/database /var/www/html/storage
# Updating permissions
chmod 775 /config/database/database.sqlite
chown -R www-data:www-data /config
chmod 775 /config/addons_config/fireflyiii/database/database.sqlite
chown -R www-data:www-data /config/addons_config/fireflyiii
chown -R www-data:www-data /var/www/html/storage
;;
@@ -150,24 +132,24 @@ esac
bashio::log.info "Defining upload folder"
# Creating folder
if [ ! -d /config/upload ]; then
mkdir -p /config/upload
chown -R www-data:www-data /config/upload
if [ ! -d /config/addons_config/fireflyiii/upload ]; then
mkdir -p /config/addons_config/fireflyiii/upload
chown -R www-data:www-data /config/addons_config/fireflyiii/upload
fi
# Creating symlink
if [ -d /var/www/html/storage/ha_upload ]; then
rm -r /var/www/html/storage/ha_upload
fi
ln -s /config/upload /var/www/html/storage/ha_upload
ln -s /config/addons_config/fireflyiii/upload /var/www/html/storage/ha_upload
# Updating permissions
chown -R www-data:www-data /config
chown -R www-data:www-data /config/addons_config/fireflyiii
chown -R www-data:www-data /var/www/html/storage
chmod -R 775 /config
chmod -R 775 /config/addons_config/fireflyiii
# Test
f=/config
f=/config/addons_config/fireflyiii
while [[ $f != / ]]; do
chmod 755 "$f"
f=$(dirname "$f")

View File

@@ -1,4 +1,2 @@
- Added support for configuring extra environment variables via the `env_vars` add-on option alongside config.yaml. See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
## 2.2.2-1 (09-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/kometa to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-kometa. Please make a backup before updating.

View File

@@ -28,7 +28,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_SERVICES_GRACETIME=0
ENV HOME=/config
ENV HOME=/config/addons_config/kometa
# Image specific modifications
RUN \
@@ -38,7 +38,7 @@ RUN \
# Global LSIO modifications
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"
ARG CONFIGLOCATION="/config"
ARG CONFIGLOCATION="/config/addons_config/kometa"
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
##################

View File

@@ -67,7 +67,7 @@ Options can be configured through two ways :
PUID: 1000 #for UserID - see below for explanation
PGID: 1000 #for GroupID - see below for explanation
TZ: Europe/London #Specify a timezone to use EG Europe/London.
KOMETA_CONFIG: /addon_configs/xxx-kometa/config.yml #Specify a custom config file to use.
KOMETA_CONFIG: /config/addons_config/kometa/config/config.yml #Specify a custom config file to use.
KOMETA_TIME: 03:00 #Comma-separated list of times to update each day. Format: HH:MM.
KOMETA_RUN: False #Set to True to run without the scheduler.
KOMETA_TEST: False #Set to True to run in debug mode with only collections that have test: true.
@@ -90,3 +90,4 @@ Create an issue on github
![illustration](https://dausruddin.com/wp-content/uploads/2020/05/plex-meta-manager-v3-1024x515.png)

View File

@@ -69,14 +69,13 @@ devices:
image: ghcr.io/alexbelgium/kometa-{arch}
init: false
map:
- addon_config:rw
- homeassistant_config:rw
- config:rw
- share:rw
- media:rw
name: Kometa
options:
env_vars: []
KOMETA_CONFIG: /config/config.yml
KOMETA_CONFIG: /config/addons_config/kometa/config.yml
PGID: 0
PUID: 0
privileged:
@@ -97,4 +96,4 @@ schema:
slug: kometa
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/kometa
version: 2.2.2-1
version: 2.2.2

View File

@@ -1,21 +0,0 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
slug=kometa
legacy_path="/homeassistant/addons_config/$slug"
target_path="/config"
mkdir -p "$target_path"
if bashio::config.has_value 'CONFIG_LOCATION' && [ "$(bashio::config 'CONFIG_LOCATION')" != "/config" ]; then
legacy_path="$(bashio::config 'CONFIG_LOCATION')"
fi
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

View File

@@ -1,8 +1,5 @@
- Added support for configuring extra environment variables via the `env_vars` add-on option alongside config.yaml. See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
## 1.34.0-1 (09-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/overseerr to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-overseerr. Please make a backup before updating.
## 1.34.0 (29-03-2025)
- Update to latest version from linuxserver/docker-overseerr (changelog : https://github.com/linuxserver/docker-overseerr/releases)

View File

@@ -30,7 +30,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
# Global LSIO modifications
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"
ARG CONFIGLOCATION="/config"
ARG CONFIGLOCATION="/config/addons_config/overseerr"
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
##################

View File

@@ -63,7 +63,7 @@ Configurations can be done through the app webUI, except for the following optio
| `PGID` | int | `0` | Group ID for file permissions |
| `PUID` | int | `0` | User ID for file permissions |
| `TZ` | str | | Timezone (e.g., `Europe/London`) |
| `CONFIG_LOCATION` | str | `/addon_configs/xxx-overseerr` | Path where Overseerr config is stored |
| `CONFIG_LOCATION` | str | `/config` | Path where Overseerr config is stored |
### Example Configuration
@@ -71,7 +71,7 @@ Configurations can be done through the app webUI, except for the following optio
PGID: 0
PUID: 0
TZ: "Europe/London"
CONFIG_LOCATION: "/addon_configs/xxx-overseerr"
CONFIG_LOCATION: "/config"
```
## Support
@@ -86,3 +86,4 @@ Create an issue on github
[repository]: https://github.com/alexbelgium/hassio-addons

View File

@@ -70,12 +70,11 @@ environment: {}
image: ghcr.io/alexbelgium/overseerr-{arch}
init: false
map:
- addon_config:rw
- homeassistant_config:rw
- config:rw
name: Overseerr
options:
env_vars: []
CONFIG_LOCATION: /config
CONFIG_LOCATION: /config/addons_config/overseerr
PGID: "0"
PUID: "0"
ports:
@@ -94,5 +93,5 @@ schema:
slug: overseerr
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/overseerr
version: 1.34.0-1
version: 1.34.0
webui: "[PROTO:ssl]://[HOST]:[PORT:5055]"

View File

@@ -2,7 +2,7 @@
# shellcheck shell=bash
set -e
CONFIG_LOCATION="/config"
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION')
bashio::log.info "Config stored in $CONFIG_LOCATION"
mkdir -p "$CONFIG_LOCATION"
@@ -10,6 +10,6 @@ chown -R "$PUID:$PGID" "$CONFIG_LOCATION"
chmod -R 755 "$CONFIG_LOCATION"
# shellcheck disable=SC2013
for file in $(grep -Esril "/config" /etc/logrotate.d /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do
sed -i "s=/config=$CONFIG_LOCATION=g" "$file"
for file in $(grep -Esril "/config/addons_config/overseerr" /etc/logrotate.d /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do
sed -i "s=/config/addons_config/overseerr=$CONFIG_LOCATION=g" "$file"
done

View File

@@ -1,26 +1,18 @@
#!/bin/bash
slug=overseerr
legacy_path="/homeassistant/addons_config/$slug"
target_path="/config"
mkdir -p "$target_path"
if bashio::config.has_value 'CONFIG_LOCATION' && [ "$(bashio::config 'CONFIG_LOCATION')" != "/config" ]; then
legacy_path="$(bashio::config 'CONFIG_LOCATION')"
if [ ! -d /config/addons_config/overseerr ]; then
echo "Creating /config/addons_config/overseerr"
mkdir -p /config/addons_config/overseerr
fi
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
if [ -d /config/addons_config/addons_config/overseerr ]; then
echo "Migrating data to /config/addons_config/overseerr"
mv /config/addons_config/addons_config/overseerr /config/addons_config/overseerr
fi
# shellcheck disable=SC2013
for file in $(grep -Esril "/config/.config/yarn" /usr /etc /defaults); do
sed -i "s=/config/.config/yarn=/config/yarn=g" "$file"
sed -i "s=/config/.config/yarn=/config/addons_config/overseerr/yarn=g" "$file"
done
yarn config set global-folder /config/yarn
chown -R "$PUID:$PGID" /config
yarn config set global-folder /config/addons_config/overseerr/yarn
chown -R "$PUID:$PGID" /config/addons_config/overseerr

View File

@@ -1,7 +1,4 @@
## 12.0.17-1 (09-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/seafile to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-seafile. Please make a backup before updating.
## 12.0.17 (12-03-2026)
- Ensure `SERVICE_URL` and `FILE_SERVER_ROOT` are written to the active Seafile config path.

View File

@@ -80,7 +80,7 @@ Webui can be found at <http://homeassistant:8000> (Seahub) and <http://homeassis
| `url` | str | | External URL for Seafile |
| `database` | list | `sqlite` | Database type (sqlite/mariadb_addon) |
| `data_location` | str | `/share/seafile` | Data storage location |
| `CONFIG_LOCATION` | str | `/addon_configs/xxx-seafile/config.yaml` | Custom config file location |
| `CONFIG_LOCATION` | str | | Custom config file location |
| `localdisks` | str | | Local drives to mount (e.g., `sda1,sdb1`) |
| `networkdisks` | str | | SMB shares to mount (e.g., `//SERVER/SHARE`) |
| `cifsusername` | str | | SMB username for network shares |
@@ -128,3 +128,4 @@ Create an issue on github
[repository]: https://github.com/alexbelgium/hassio-addons

View File

@@ -72,14 +72,13 @@ environment:
PUID: "1000"
image: ghcr.io/alexbelgium/seafile-{arch}
map:
- addon_config:rw
- homeassistant_config:rw
- config:rw
- share:rw
- ssl
name: Seafile
options:
env_vars: []
CONFIG_LOCATION: /config/config.yaml
CONFIG_LOCATION: /config/addons_config/seafile/config.yaml
FILE_SERVER_ROOT: http://homeassistant.local:8082
PGID: 1000
PORT: "8082"
@@ -129,5 +128,5 @@ services:
slug: seafile
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
version: "12.0.17-1"
version: "12.0.17"
webui: http://[HOST]:[PORT:8000]

View File

@@ -1,21 +0,0 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
slug=seafile
legacy_path="/homeassistant/addons_config/$slug"
target_path="/config"
mkdir -p "$target_path"
if bashio::config.has_value 'CONFIG_LOCATION' && [ "$(bashio::config 'CONFIG_LOCATION')" != "/config" ]; then
legacy_path="$(bashio::config 'CONFIG_LOCATION')"
fi
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

View File

@@ -1,7 +1,4 @@
## 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

View File

@@ -62,7 +62,7 @@ The server port is `8266` for connecting external Tdarr nodes.
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `CONFIG_LOCATION` | str | `/addon_configs/xxx-tdarr` | Path where Tdarr config is stored |
| `CONFIG_LOCATION` | str | `/config/addons_config/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: "/addon_configs/xxx-tdarr"
CONFIG_LOCATION: "/config/addons_config/tdarr"
TZ: "Europe/London"
localdisks: "sda1,sdb1"
networkdisks: "//192.168.1.100/media,//nas.local/transcoding"
@@ -130,3 +130,4 @@ Configure hardware acceleration in the Tdarr Web UI under Settings > FFmpeg/Hand
[repository]: https://github.com/alexbelgium/hassio-addons

View File

@@ -88,8 +88,7 @@ image: ghcr.io/alexbelgium/tdarr-{arch}
init: false
map:
- media:rw
- addon_config:rw
- homeassistant_config:rw
- config:rw
- addons:rw
- backup:rw
- share:rw
@@ -97,7 +96,7 @@ map:
name: Tdarr
options:
env_vars: []
CONFIG_LOCATION: /config
CONFIG_LOCATION: /config/addons_config/tdarr
panel_admin: false
panel_icon: mdi:file-search
ports:
@@ -123,6 +122,6 @@ schema:
slug: tdarr
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "2.58.02-1"
version: "2.58.02"
video: true
webui: "[PROTO:ssl]://[HOST]:[PORT:8265]"

View File

@@ -25,25 +25,7 @@ bashio::log.info "Setting PUID=$PUID, PGID=$PGID"
cd /
# 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
CONFIGLOCATION="$(bashio::config 'CONFIG_LOCATION')"
# Create folder
mkdir -p "$CONFIGLOCATION"

View File

@@ -1,8 +1,5 @@
- Added support for configuring extra environment variables via the `env_vars` add-on option alongside config.yaml. See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
## 2.4-12 (09-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/wger to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-wger. Please make a backup before updating.
## 2.4-11 (19-09-2025)
- Minor bugs fixed
## 2.4-10 (19-09-2025)

View File

@@ -47,12 +47,12 @@ Options can be configured through two ways :
- Addon options
```yaml
"CONFIG_LOCATION": location of the config.yaml # Defaults to /addon_configs/xxx-wger/config.yaml
"CONFIG_LOCATION": location of the config.yaml # Sets the location of the config.yaml (see below)
```
- Config.yaml (advanced usage)
Additional variables can be set as ENV variables by adding them in the config.yaml stored in `/addon_configs/xxx-wger/config.yaml` according to this guide : https://github.com/alexbelgium/hassio-addons/wiki/Addons-feature:-add-env-variables
Additional variables can be set as ENV variables by adding them in the config.yaml in the location defined in your addon options according to this guide : https://github.com/alexbelgium/hassio-addons/wiki/Addons-feature:-add-env-variables
The complete list of ENV variables can be seen here : not available
@@ -73,3 +73,4 @@ comparison to installing any other Hass.io add-on.
If you have in issue with your installation, please be sure to checkout github.
[repository]: https://github.com/alexbelgium/hassio-addons

View File

@@ -4,14 +4,13 @@ arch:
description: manage your personal workouts, weight and diet plans
image: ghcr.io/alexbelgium/wger-{arch}
map:
- addon_config:rw
- homeassistant_config:rw
- share:rw
- config:rw
- ssl:ro
name: Wger
options:
env_vars: []
CONFIG_LOCATION: /config/config.yaml
CONFIG_LOCATION: /config/addons_config/wger/config.yaml
ports:
80/tcp: 9927
ports_description:
@@ -24,5 +23,5 @@ schema:
slug: wger
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: 2.4-12
version: 2.4-11
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"

View File

@@ -1,21 +0,0 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
slug=wger
legacy_path="/homeassistant/addons_config/$slug"
target_path="/config"
mkdir -p "$target_path"
if bashio::config.has_value 'CONFIG_LOCATION' && [ "$(bashio::config 'CONFIG_LOCATION')" != "/config" ]; then
legacy_path="$(bashio::config 'CONFIG_LOCATION')"
fi
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