Use CONFIG_LOCATION only for migration

This commit is contained in:
Alexandre
2026-01-09 10:11:18 +01:00
parent 2dd05df4c9
commit 6bbb3de5fe
32 changed files with 227 additions and 81 deletions

View File

@@ -1,4 +1,7 @@
## 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) ## debian-2025-12-02 (2025-12-02)
- Update to latest version from charlocharlie/epicgames-freegames - 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
Configuration files are stored in `/config/addons_config/epicgamesfree/`: Configuration files are stored in `/addon_configs/xxx-epicgamesfree/`:
- **config.json**: Main configuration file - **config.json**: Main configuration file
- **cookies.json**: Authentication cookies (optional) - **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 ### Basic Configuration
Create `/config/addons_config/epicgamesfree/config.json`: Create `/addon_configs/xxx-epicgamesfree/config.json`:
```json ```json
{ {
@@ -149,7 +149,7 @@ notifications:
### Cookie Import (Optional) ### Cookie Import (Optional)
You can import browser cookies to avoid login issues. Create `/config/addons_config/epicgamesfree/cookies.json`: You can import browser cookies to avoid login issues. Create `/addon_configs/xxx-epicgamesfree/cookies.json`:
For detailed cookie import instructions, see: https://github.com/claabs/epicgames-freegames-node#cookie-import For detailed cookie import instructions, see: https://github.com/claabs/epicgames-freegames-node#cookie-import

View File

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

View File

@@ -2,7 +2,25 @@
# shellcheck shell=bash # shellcheck shell=bash
set -e 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 # Define home
HOME="/config/addons_config/epicgamesfree" HOME="/config"
mkdir -p $HOME mkdir -p $HOME
chmod -R 777 $HOME chmod -R 777 $HOME

View File

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

View File

@@ -1,4 +1,7 @@
## 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) ## 6.4.15 (08-01-2026)
- Update to latest version from firefly-iii/firefly-iii (changelog : https://github.com/firefly-iii/firefly-iii/releases) - 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 | | Option | Type | Default | Description |
|--------|------|---------|-------------| |--------|------|---------|-------------|
| `APP_KEY` | str | `CHANGEME_32_CHARS_EuC5dfn3LAPzeO` | **CRITICAL**: 32-character encryption key - change before first run! | | `APP_KEY` | str | `CHANGEME_32_CHARS_EuC5dfn3LAPzeO` | **CRITICAL**: 32-character encryption key - change before first run! |
| `CONFIG_LOCATION` | str | `/config/addons_config/fireflyiii/config.yaml` | Location of additional config file | | `CONFIG_LOCATION` | str | `/addon_configs/xxx-fireflyiii/config.yaml` | Location of additional config file |
| `DB_CONNECTION` | list | `sqlite_internal` | Database type (sqlite_internal/mariadb_addon/mysql/pgsql) | | `DB_CONNECTION` | list | `sqlite_internal` | Database type (sqlite_internal/mariadb_addon/mysql/pgsql) |
| `DB_HOST` | str | | Database host (for external databases) | | `DB_HOST` | str | | Database host (for external databases) |
| `DB_PORT` | str | | Database port (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 ```yaml
APP_KEY: "SomeRandomStringOf32CharsExactly" APP_KEY: "SomeRandomStringOf32CharsExactly"
CONFIG_LOCATION: "/config/addons_config/fireflyiii/config.yaml" CONFIG_LOCATION: "/addon_configs/xxx-fireflyiii/config.yaml"
DB_CONNECTION: "mariadb_addon" DB_CONNECTION: "mariadb_addon"
DB_HOST: "core-mariadb" DB_HOST: "core-mariadb"
DB_PORT: "3306" DB_PORT: "3306"
@@ -101,4 +101,3 @@ Create an issue on github
[repository]: https://github.com/alexbelgium/hassio-addons [repository]: https://github.com/alexbelgium/hassio-addons

View File

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

View File

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

View File

@@ -1,2 +1,4 @@
- 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. - 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 S6_SERVICES_GRACETIME=0
ENV HOME=/config/addons_config/kometa ENV HOME=/config
# Image specific modifications # Image specific modifications
RUN \ RUN \
@@ -38,7 +38,7 @@ RUN \
# Global LSIO modifications # Global LSIO modifications
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh" ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"
ARG CONFIGLOCATION="/config/addons_config/kometa" ARG CONFIGLOCATION="/config"
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh 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 PUID: 1000 #for UserID - see below for explanation
PGID: 1000 #for GroupID - see below for explanation PGID: 1000 #for GroupID - see below for explanation
TZ: Europe/London #Specify a timezone to use EG Europe/London. TZ: Europe/London #Specify a timezone to use EG Europe/London.
KOMETA_CONFIG: /config/addons_config/kometa/config/config.yml #Specify a custom config file to use. KOMETA_CONFIG: /addon_configs/xxx-kometa/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_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_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. KOMETA_TEST: False #Set to True to run in debug mode with only collections that have test: true.
@@ -90,4 +90,3 @@ Create an issue on github
![illustration](https://dausruddin.com/wp-content/uploads/2020/05/plex-meta-manager-v3-1024x515.png) ![illustration](https://dausruddin.com/wp-content/uploads/2020/05/plex-meta-manager-v3-1024x515.png)

View File

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

View File

@@ -0,0 +1,21 @@
#!/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,5 +1,8 @@
- 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. - 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) ## 1.34.0 (29-03-2025)
- Update to latest version from linuxserver/docker-overseerr (changelog : https://github.com/linuxserver/docker-overseerr/releases) - 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 # Global LSIO modifications
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh" ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"
ARG CONFIGLOCATION="/config/addons_config/overseerr" ARG CONFIGLOCATION="/config"
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh 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 | | `PGID` | int | `0` | Group ID for file permissions |
| `PUID` | int | `0` | User ID for file permissions | | `PUID` | int | `0` | User ID for file permissions |
| `TZ` | str | | Timezone (e.g., `Europe/London`) | | `TZ` | str | | Timezone (e.g., `Europe/London`) |
| `CONFIG_LOCATION` | str | `/config` | Path where Overseerr config is stored | | `CONFIG_LOCATION` | str | `/addon_configs/xxx-overseerr` | Path where Overseerr config is stored |
### Example Configuration ### Example Configuration
@@ -71,7 +71,7 @@ Configurations can be done through the app webUI, except for the following optio
PGID: 0 PGID: 0
PUID: 0 PUID: 0
TZ: "Europe/London" TZ: "Europe/London"
CONFIG_LOCATION: "/config" CONFIG_LOCATION: "/addon_configs/xxx-overseerr"
``` ```
## Support ## Support
@@ -86,4 +86,3 @@ Create an issue on github
[repository]: https://github.com/alexbelgium/hassio-addons [repository]: https://github.com/alexbelgium/hassio-addons

View File

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

View File

@@ -2,7 +2,7 @@
# shellcheck shell=bash # shellcheck shell=bash
set -e set -e
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION') CONFIG_LOCATION="/config"
bashio::log.info "Config stored in $CONFIG_LOCATION" bashio::log.info "Config stored in $CONFIG_LOCATION"
mkdir -p "$CONFIG_LOCATION" mkdir -p "$CONFIG_LOCATION"
@@ -10,6 +10,6 @@ chown -R "$PUID:$PGID" "$CONFIG_LOCATION"
chmod -R 755 "$CONFIG_LOCATION" chmod -R 755 "$CONFIG_LOCATION"
# shellcheck disable=SC2013 # shellcheck disable=SC2013
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 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/addons_config/overseerr=$CONFIG_LOCATION=g" "$file" sed -i "s=/config=$CONFIG_LOCATION=g" "$file"
done done

View File

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

View File

@@ -1,4 +1,7 @@
## 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) ## 12.0.17 (12-03-2026)
- Ensure `SERVICE_URL` and `FILE_SERVER_ROOT` are written to the active Seafile config path. - 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 | | `url` | str | | External URL for Seafile |
| `database` | list | `sqlite` | Database type (sqlite/mariadb_addon) | | `database` | list | `sqlite` | Database type (sqlite/mariadb_addon) |
| `data_location` | str | `/share/seafile` | Data storage location | | `data_location` | str | `/share/seafile` | Data storage location |
| `CONFIG_LOCATION` | str | | Custom config file location | | `CONFIG_LOCATION` | str | `/addon_configs/xxx-seafile/config.yaml` | Custom config file location |
| `localdisks` | str | | Local drives to mount (e.g., `sda1,sdb1`) | | `localdisks` | str | | Local drives to mount (e.g., `sda1,sdb1`) |
| `networkdisks` | str | | SMB shares to mount (e.g., `//SERVER/SHARE`) | | `networkdisks` | str | | SMB shares to mount (e.g., `//SERVER/SHARE`) |
| `cifsusername` | str | | SMB username for network shares | | `cifsusername` | str | | SMB username for network shares |
@@ -128,4 +128,3 @@ Create an issue on github
[repository]: https://github.com/alexbelgium/hassio-addons [repository]: https://github.com/alexbelgium/hassio-addons

View File

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

View File

@@ -0,0 +1,21 @@
#!/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,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) ## 2.58.02 (24-12-2025)
- Update to latest version from haveagitgat/tdarr - 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 | | 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`) | | `TZ` | str | | Timezone (e.g., `Europe/London`) |
| `localdisks` | str | | Local drives to mount (e.g., `sda1,sdb1,MYNAS`) | | `localdisks` | str | | Local drives to mount (e.g., `sda1,sdb1,MYNAS`) |
| `networkdisks` | str | | SMB shares to mount (e.g., `//SERVER/SHARE`) | | `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 ### Example Configuration
```yaml ```yaml
CONFIG_LOCATION: "/config/addons_config/tdarr" CONFIG_LOCATION: "/addon_configs/xxx-tdarr"
TZ: "Europe/London" TZ: "Europe/London"
localdisks: "sda1,sdb1" localdisks: "sda1,sdb1"
networkdisks: "//192.168.1.100/media,//nas.local/transcoding" 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 [repository]: https://github.com/alexbelgium/hassio-addons

View File

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

View File

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

View File

@@ -1,5 +1,8 @@
- 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. - 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) ## 2.4-11 (19-09-2025)
- Minor bugs fixed - Minor bugs fixed
## 2.4-10 (19-09-2025) ## 2.4-10 (19-09-2025)

View File

@@ -47,12 +47,12 @@ Options can be configured through two ways :
- Addon options - Addon options
```yaml ```yaml
"CONFIG_LOCATION": location of the config.yaml # Sets the location of the config.yaml (see below) "CONFIG_LOCATION": location of the config.yaml # Defaults to /addon_configs/xxx-wger/config.yaml
``` ```
- Config.yaml (advanced usage) - Config.yaml (advanced usage)
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 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
The complete list of ENV variables can be seen here : not available The complete list of ENV variables can be seen here : not available
@@ -73,4 +73,3 @@ comparison to installing any other Hass.io add-on.
If you have in issue with your installation, please be sure to checkout github. If you have in issue with your installation, please be sure to checkout github.
[repository]: https://github.com/alexbelgium/hassio-addons [repository]: https://github.com/alexbelgium/hassio-addons

View File

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

View File

@@ -0,0 +1,21 @@
#!/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