mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Use CONFIG_LOCATION only for migration
This commit is contained in:
@@ -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)
|
||||
- Update to latest version from charlocharlie/epicgames-freegames
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ Addon options expose the `env_vars` field for passing extra environment variable
|
||||
|
||||
### 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
|
||||
- **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 `/config/addons_config/epicgamesfree/config.json`:
|
||||
Create `/addon_configs/xxx-epicgamesfree/config.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -149,7 +149,7 @@ notifications:
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
@@ -67,11 +67,12 @@ devices:
|
||||
- /dev/nvme1
|
||||
- /dev/nvme2
|
||||
environment:
|
||||
CONFIG_DIR: /config/addons_config/epicgamesfree
|
||||
CONFIG_DIR: /config
|
||||
image: ghcr.io/alexbelgium/epicgamesfree-{arch}
|
||||
init: false
|
||||
map:
|
||||
- config:rw
|
||||
- addon_config:rw
|
||||
- homeassistant_config:rw
|
||||
name: Epic Games Free
|
||||
options:
|
||||
env_vars: []
|
||||
@@ -88,5 +89,5 @@ schema:
|
||||
slug: epicgamesfree
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "debian-2025-12-02"
|
||||
version: "debian-2025-12-04-2"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:3000]"
|
||||
|
||||
@@ -2,7 +2,25 @@
|
||||
# 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/addons_config/epicgamesfree"
|
||||
HOME="/config"
|
||||
mkdir -p $HOME
|
||||
chmod -R 777 $HOME
|
||||
|
||||
@@ -6,7 +6,7 @@ set -e
|
||||
# Initialize #
|
||||
##############
|
||||
|
||||
HOME="/config/addons_config/epicgamesfree"
|
||||
HOME="/config"
|
||||
CONFIG_JSON="$HOME/config.json"
|
||||
LEGACY_YAML="$HOME/config.yaml"
|
||||
|
||||
|
||||
@@ -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)
|
||||
- Update to latest version from firefly-iii/firefly-iii (changelog : https://github.com/firefly-iii/firefly-iii/releases)
|
||||
|
||||
|
||||
@@ -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 | `/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_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: "/config/addons_config/fireflyiii/config.yaml"
|
||||
CONFIG_LOCATION: "/addon_configs/xxx-fireflyiii/config.yaml"
|
||||
DB_CONNECTION: "mariadb_addon"
|
||||
DB_HOST: "core-mariadb"
|
||||
DB_PORT: "3306"
|
||||
@@ -101,4 +101,3 @@ Create an issue on github
|
||||
|
||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||
|
||||
|
||||
|
||||
@@ -69,13 +69,14 @@ environment:
|
||||
image: ghcr.io/alexbelgium/fireflyiii-{arch}
|
||||
init: false
|
||||
map:
|
||||
- config:rw
|
||||
- addon_config:rw
|
||||
- homeassistant_config:rw
|
||||
- share:rw
|
||||
name: Firefly iii
|
||||
options:
|
||||
env_vars: []
|
||||
APP_KEY: CHANGEME_32_CHARS_EuC5dfn3LAPzeO
|
||||
CONFIG_LOCATION: /config/addons_config/fireflyiii/config.yaml
|
||||
CONFIG_LOCATION: /config/config.yaml
|
||||
DB_CONNECTION: sqlite_internal
|
||||
silent: "true"
|
||||
ports:
|
||||
@@ -104,5 +105,5 @@ slug: fireflyiii
|
||||
startup: services
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "6.4.15"
|
||||
version: "6.4.15-1"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
||||
|
||||
@@ -3,6 +3,24 @@
|
||||
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 #
|
||||
########
|
||||
@@ -17,24 +35,24 @@ if [[ ! "$APP_KEY" == *"base64"* ]]; then
|
||||
fi
|
||||
|
||||
# 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"
|
||||
|
||||
# Get current app_key
|
||||
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')
|
||||
mkdir -p /config
|
||||
touch /config/APP_KEY_BACKUP.txt
|
||||
CURRENT=$(sed -e '/^[<blank><tab>]*$/d' /config/APP_KEY_BACKUP.txt | sed -n -e '$p')
|
||||
|
||||
# Save if new
|
||||
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
|
||||
|
||||
# Update permissions
|
||||
mkdir -p /config/addons_config/fireflyiii
|
||||
chown -R www-data:www-data /config/addons_config/fireflyiii
|
||||
mkdir -p /config
|
||||
chown -R www-data:www-data /config
|
||||
chown -R www-data:www-data /var/www/html/storage
|
||||
chmod -R 775 /config/addons_config/fireflyiii
|
||||
chmod -R 775 /config
|
||||
|
||||
###################
|
||||
# Define database #
|
||||
@@ -49,16 +67,16 @@ case $(bashio::config 'DB_CONNECTION') in
|
||||
|
||||
# Set variable
|
||||
export DB_CONNECTION=sqlite
|
||||
export DB_DATABASE=/config/addons_config/fireflyiii/database/database.sqlite
|
||||
export DB_DATABASE=/config/database/database.sqlite
|
||||
|
||||
# Creating folders
|
||||
mkdir -p /config/addons_config/fireflyiii/database
|
||||
chown -R www-data:www-data /config/addons_config/fireflyiii/database
|
||||
mkdir -p /config/database
|
||||
chown -R www-data:www-data /config/database
|
||||
|
||||
# Creating database
|
||||
if [ ! -f /config/addons_config/fireflyiii/database/database.sqlite ]; then
|
||||
if [ ! -f /config/database/database.sqlite ]; then
|
||||
# Create database
|
||||
touch /config/addons_config/fireflyiii/database/database.sqlite
|
||||
touch /config/database/database.sqlite
|
||||
# Install database
|
||||
echo "updating database"
|
||||
php artisan migrate:refresh --seed --quiet
|
||||
@@ -68,11 +86,11 @@ case $(bashio::config 'DB_CONNECTION') in
|
||||
|
||||
# Creating symlink
|
||||
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
|
||||
chmod 775 /config/addons_config/fireflyiii/database/database.sqlite
|
||||
chown -R www-data:www-data /config/addons_config/fireflyiii
|
||||
chmod 775 /config/database/database.sqlite
|
||||
chown -R www-data:www-data /config
|
||||
chown -R www-data:www-data /var/www/html/storage
|
||||
;;
|
||||
|
||||
@@ -132,24 +150,24 @@ esac
|
||||
bashio::log.info "Defining upload folder"
|
||||
|
||||
# Creating folder
|
||||
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
|
||||
if [ ! -d /config/upload ]; then
|
||||
mkdir -p /config/upload
|
||||
chown -R www-data:www-data /config/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/addons_config/fireflyiii/upload /var/www/html/storage/ha_upload
|
||||
ln -s /config/upload /var/www/html/storage/ha_upload
|
||||
|
||||
# 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
|
||||
chmod -R 775 /config/addons_config/fireflyiii
|
||||
chmod -R 775 /config
|
||||
|
||||
# Test
|
||||
f=/config/addons_config/fireflyiii
|
||||
f=/config
|
||||
while [[ $f != / ]]; do
|
||||
chmod 755 "$f"
|
||||
f=$(dirname "$f")
|
||||
|
||||
@@ -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.
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -28,7 +28,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
|
||||
ENV HOME=/config/addons_config/kometa
|
||||
ENV HOME=/config
|
||||
|
||||
# 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/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
|
||||
|
||||
##################
|
||||
|
||||
@@ -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: /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_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,4 +90,3 @@ Create an issue on github
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
@@ -69,13 +69,14 @@ devices:
|
||||
image: ghcr.io/alexbelgium/kometa-{arch}
|
||||
init: false
|
||||
map:
|
||||
- config:rw
|
||||
- addon_config:rw
|
||||
- homeassistant_config:rw
|
||||
- share:rw
|
||||
- media:rw
|
||||
name: Kometa
|
||||
options:
|
||||
env_vars: []
|
||||
KOMETA_CONFIG: /config/addons_config/kometa/config.yml
|
||||
KOMETA_CONFIG: /config/config.yml
|
||||
PGID: 0
|
||||
PUID: 0
|
||||
privileged:
|
||||
@@ -96,4 +97,4 @@ schema:
|
||||
slug: kometa
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/kometa
|
||||
version: 2.2.2
|
||||
version: 2.2.2-1
|
||||
|
||||
21
kometa/rootfs/etc/cont-init.d/00-migrate.sh
Executable file
21
kometa/rootfs/etc/cont-init.d/00-migrate.sh
Executable 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
|
||||
@@ -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.
|
||||
|
||||
## 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)
|
||||
|
||||
|
||||
@@ -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/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
|
||||
|
||||
##################
|
||||
|
||||
@@ -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 | `/config` | Path where Overseerr config is stored |
|
||||
| `CONFIG_LOCATION` | str | `/addon_configs/xxx-overseerr` | 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: "/config"
|
||||
CONFIG_LOCATION: "/addon_configs/xxx-overseerr"
|
||||
```
|
||||
|
||||
## Support
|
||||
@@ -86,4 +86,3 @@ Create an issue on github
|
||||
|
||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||
|
||||
|
||||
|
||||
@@ -70,11 +70,12 @@ environment: {}
|
||||
image: ghcr.io/alexbelgium/overseerr-{arch}
|
||||
init: false
|
||||
map:
|
||||
- config:rw
|
||||
- addon_config:rw
|
||||
- homeassistant_config:rw
|
||||
name: Overseerr
|
||||
options:
|
||||
env_vars: []
|
||||
CONFIG_LOCATION: /config/addons_config/overseerr
|
||||
CONFIG_LOCATION: /config
|
||||
PGID: "0"
|
||||
PUID: "0"
|
||||
ports:
|
||||
@@ -93,5 +94,5 @@ schema:
|
||||
slug: overseerr
|
||||
udev: true
|
||||
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]"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION')
|
||||
CONFIG_LOCATION="/config"
|
||||
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/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"
|
||||
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"
|
||||
done
|
||||
|
||||
@@ -1,18 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -d /config/addons_config/overseerr ]; then
|
||||
echo "Creating /config/addons_config/overseerr"
|
||||
mkdir -p /config/addons_config/overseerr
|
||||
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')"
|
||||
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
|
||||
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
|
||||
|
||||
# shellcheck disable=SC2013
|
||||
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
|
||||
yarn config set global-folder /config/addons_config/overseerr/yarn
|
||||
chown -R "$PUID:$PGID" /config/addons_config/overseerr
|
||||
yarn config set global-folder /config/yarn
|
||||
chown -R "$PUID:$PGID" /config
|
||||
|
||||
@@ -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)
|
||||
- Ensure `SERVICE_URL` and `FILE_SERVER_ROOT` are written to the active Seafile config path.
|
||||
|
||||
|
||||
@@ -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 | | 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`) |
|
||||
| `networkdisks` | str | | SMB shares to mount (e.g., `//SERVER/SHARE`) |
|
||||
| `cifsusername` | str | | SMB username for network shares |
|
||||
@@ -128,4 +128,3 @@ Create an issue on github
|
||||
|
||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||
|
||||
|
||||
|
||||
@@ -72,13 +72,14 @@ environment:
|
||||
PUID: "1000"
|
||||
image: ghcr.io/alexbelgium/seafile-{arch}
|
||||
map:
|
||||
- config:rw
|
||||
- addon_config:rw
|
||||
- homeassistant_config:rw
|
||||
- share:rw
|
||||
- ssl
|
||||
name: Seafile
|
||||
options:
|
||||
env_vars: []
|
||||
CONFIG_LOCATION: /config/addons_config/seafile/config.yaml
|
||||
CONFIG_LOCATION: /config/config.yaml
|
||||
FILE_SERVER_ROOT: http://homeassistant.local:8082
|
||||
PGID: 1000
|
||||
PORT: "8082"
|
||||
@@ -128,5 +129,5 @@ services:
|
||||
slug: seafile
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
|
||||
version: "12.0.17"
|
||||
version: "12.0.17-1"
|
||||
webui: http://[HOST]:[PORT:8000]
|
||||
|
||||
21
seafile/rootfs/etc/cont-init.d/00-migrate.sh
Executable file
21
seafile/rootfs/etc/cont-init.d/00-migrate.sh
Executable 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
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
## 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)
|
||||
|
||||
@@ -47,12 +47,12 @@ Options can be configured through two ways :
|
||||
- Addon options
|
||||
|
||||
```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)
|
||||
|
||||
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
|
||||
|
||||
@@ -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.
|
||||
|
||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||
|
||||
|
||||
@@ -4,13 +4,14 @@ 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/addons_config/wger/config.yaml
|
||||
CONFIG_LOCATION: /config/config.yaml
|
||||
ports:
|
||||
80/tcp: 9927
|
||||
ports_description:
|
||||
@@ -23,5 +24,5 @@ schema:
|
||||
slug: wger
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: 2.4-11
|
||||
version: 2.4-12
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||
|
||||
21
wger/rootfs/etc/cont-init.d/00-migrate.sh
Executable file
21
wger/rootfs/etc/cont-init.d/00-migrate.sh
Executable 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
|
||||
Reference in New Issue
Block a user