Merge pull request #2338 from alexbelgium/codex/migrate-arr-addons-to-/addon_configs

Migrate Radarr/Sonarr/Lidarr/Readarr/Prowlarr/Bazarr to /addon_configs
This commit is contained in:
Alexandre
2026-01-08 14:51:12 +01:00
committed by GitHub
32 changed files with 119 additions and 118 deletions

View File

@@ -1,4 +1,7 @@
## 1.5.4-1 (08-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/bazarr to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-bazarr. This avoids the addon to mess with your homeassistant configuration folder, and allows to backup the options. Migration of data should be automatic. Please be sure to update all your links however ! For more information, see here : https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/
## 1.5.4 (08-01-2026) ## 1.5.4 (08-01-2026)
- Update to latest version from linuxserver/docker-bazarr (changelog : https://github.com/linuxserver/docker-bazarr/releases) - Update to latest version from linuxserver/docker-bazarr (changelog : https://github.com/linuxserver/docker-bazarr/releases)
- The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release - The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release

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/bazarr" 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

@@ -74,7 +74,8 @@ environment:
image: ghcr.io/alexbelgium/bazarr-{arch} image: ghcr.io/alexbelgium/bazarr-{arch}
init: false init: false
map: map:
- config:rw - addon_config:rw
- homeassistant_config:rw
- share:rw - share:rw
- media:rw - media:rw
- ssl - ssl
@@ -105,5 +106,5 @@ schema:
slug: bazarr_nas slug: bazarr_nas
udev: true udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/bazarr url: https://github.com/alexbelgium/hassio-addons/tree/master/bazarr
version: "1.5.4" version: "1.5.4-1"
webui: "[PROTO:ssl]://[HOST]:[PORT:6767]" webui: "[PROTO:ssl]://[HOST]:[PORT:6767]"

View File

@@ -1,4 +1,6 @@
#!/bin/bash #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
if [ ! -d /share/storage/movies ]; then if [ ! -d /share/storage/movies ]; then
echo "Creating /share/storage/movies" echo "Creating /share/storage/movies"
@@ -18,16 +20,14 @@ if [ ! -d /share/downloads ]; then
chown -R "$PUID:$PGID" /share/downloads chown -R "$PUID:$PGID" /share/downloads
fi fi
if [ -d /config/bazarr ] && [ ! -d /config/addons_config/bazarr ]; then slug=bazarr
echo "Moving to new location /config/addons_config/bazarr"
mkdir -p /config/addons_config/bazarr if [ -d "/homeassistant/addons_config/$slug" ]; then
chown -R "$PUID:$PGID" /config/addons_config/bazarr echo "Migrating /homeassistant/addons_config/$slug to /addon_configs/xxx-$slug"
mv /config/bazarr/* /config/addons_config/bazarr/ cp -rnf /homeassistant/addons_config/"$slug"/. /config/ || true
rm -r /config/bazarr mv /homeassistant/addons_config/"$slug" /homeassistant/addons_config/"$slug"_migrated
fi fi
if [ ! -d /config/addons_config/bazarr ]; then if [ -d /config/addons_config ]; then
echo "Creating /config/addons_config/bazarr" rm -rf /config/addons_config
mkdir -p /config/addons_config/bazarr
chown -R "$PUID:$PGID" /config/addons_config/bazarr
fi fi

View File

@@ -1,4 +1,7 @@
## 3.1.0.4875-1 (08-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/lidarr to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-lidarr_nas. This avoids the addon to mess with your homeassistant configuration folder, and allows to backup the options. Migration of data should be automatic. Please be sure to update all your links however ! For more information, see here : https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/
## 3.1.0.4875 (22-11-2025) ## 3.1.0.4875 (22-11-2025)
- Update to latest version from linuxserver/docker-lidarr (changelog : https://github.com/linuxserver/docker-lidarr/releases) - Update to latest version from linuxserver/docker-lidarr (changelog : https://github.com/linuxserver/docker-lidarr/releases)
- The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release - The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release

View File

@@ -29,7 +29,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/lidarr" 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

@@ -71,7 +71,8 @@ environment:
image: ghcr.io/alexbelgium/lidarr_nas-{arch} image: ghcr.io/alexbelgium/lidarr_nas-{arch}
init: false init: false
map: map:
- config:rw - addon_config:rw
- homeassistant_config:rw
- share:rw - share:rw
- media:rw - media:rw
name: Lidarr NAS name: Lidarr NAS
@@ -101,5 +102,5 @@ schema:
slug: lidarr_nas slug: lidarr_nas
udev: true udev: true
url: https://github.com/alexbelgium/hassio-addons/blob/master/lidarr/README.md url: https://github.com/alexbelgium/hassio-addons/blob/master/lidarr/README.md
version: "3.1.0.4875" version: "3.1.0.4875-1"
webui: "[PROTO:ssl]://[HOST]:[PORT:8686]" webui: "[PROTO:ssl]://[HOST]:[PORT:8686]"

View File

@@ -14,16 +14,14 @@ if [ ! -d /share/downloads ]; then
chown -R "$PUID:$PGID" /share/downloads chown -R "$PUID:$PGID" /share/downloads
fi fi
if [ -d /config/lidarr ] && [ ! -d /config/addons_config/lidarr ]; then slug=lidarr
echo "Moving to new location /config/addons_config/lidarr"
mkdir -p /config/addons_config/lidarr if [ -d "/homeassistant/addons_config/$slug" ]; then
chmod 755 /config/addons_config/lidarr echo "Migrating /homeassistant/addons_config/$slug to /addon_configs/xxx-$slug"
mv /config/lidarr/* /config/addons_config/lidarr/ cp -rnf /homeassistant/addons_config/"$slug"/. /config/ || true
rm -r /config/lidarr mv /homeassistant/addons_config/"$slug" /homeassistant/addons_config/"$slug"_migrated
fi fi
if [ ! -d /config/addons_config/lidarr ]; then if [ -d /config/addons_config ]; then
echo "Creating /config/addons_config/lidarr" rm -rf /config/addons_config
mkdir -p /config/addons_config/lidarr
chmod 755 /config/addons_config/lidarr
fi fi

View File

@@ -1,4 +1,7 @@
## develop-2.3.2.5245-ls249-1 (08-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/prowlarr to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-prowlarr. This avoids the addon to mess with your homeassistant configuration folder, and allows to backup the options. Migration of data should be automatic. Please be sure to update all your links however ! For more information, see here : https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/
## develop-2.3.2.5245-ls249 (08-01-2026) ## develop-2.3.2.5245-ls249 (08-01-2026)
- Update to latest version from linuxserver/docker-prowlarr (changelog : https://github.com/linuxserver/docker-prowlarr/releases) - Update to latest version from linuxserver/docker-prowlarr (changelog : https://github.com/linuxserver/docker-prowlarr/releases)

View File

@@ -29,7 +29,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/prowlarr" 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

@@ -72,7 +72,8 @@ environment:
image: ghcr.io/alexbelgium/prowlarr-{arch} image: ghcr.io/alexbelgium/prowlarr-{arch}
init: false init: false
map: map:
- config:rw - addon_config:rw
- homeassistant_config:rw
- share:rw - share:rw
- media:rw - media:rw
- ssl - ssl
@@ -104,5 +105,5 @@ schema:
slug: prowlarr slug: prowlarr
udev: true udev: true
url: https://github.com/alexbelgium/hassio-addons url: https://github.com/alexbelgium/hassio-addons
version: "develop-2.3.2.5245-ls249" version: "develop-2.3.2.5245-ls249-1"
webui: "[PROTO:ssl]://[HOST]:[PORT:9696]" webui: "[PROTO:ssl]://[HOST]:[PORT:9696]"

View File

@@ -1,15 +1,15 @@
#!/bin/bash #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
if [ -d /config/prowlarr ] && [ ! -d /config/addons_config/prowlarr ]; then slug=prowlarr
echo "Moving to new location /config/addons_config/prowlarr"
mkdir -p /config/addons_config/prowlarr if [ -d "/homeassistant/addons_config/$slug" ]; then
chown -R "$PUID:$PGID" /config/addons_config/prowlarr echo "Migrating /homeassistant/addons_config/$slug to /addon_configs/xxx-$slug"
mv /config/prowlarr/* /config/addons_config/prowlarr/ cp -rnf /homeassistant/addons_config/"$slug"/. /config/ || true
rm -r /config/prowlarr mv /homeassistant/addons_config/"$slug" /homeassistant/addons_config/"$slug"_migrated
fi fi
if [ ! -d /config/addons_config/prowlarr ]; then if [ -d /config/addons_config ]; then
echo "Creating /config/addons_config/prowlarr" rm -rf /config/addons_config
mkdir -p /config/addons_config/prowlarr
chown -R "$PUID:$PGID" /config/addons_config/prowlarr
fi fi

View File

@@ -1,4 +1,7 @@
## 6.0.4.10291-1 (08-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/radarr to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-radarr_nas. This avoids the addon to mess with your homeassistant configuration folder, and allows to backup the options. Migration of data should be automatic. Please be sure to update all your links however ! For more information, see here : https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/
## 6.0.4.10291 (22-11-2025) ## 6.0.4.10291 (22-11-2025)
- Update to latest version from linuxserver/docker-radarr (changelog : https://github.com/linuxserver/docker-radarr/releases) - Update to latest version from linuxserver/docker-radarr (changelog : https://github.com/linuxserver/docker-radarr/releases)
- The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release - The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release

View File

@@ -29,7 +29,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/radarr" 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

@@ -72,7 +72,8 @@ ingress: true
ingress_entry: radarr ingress_entry: radarr
init: false init: false
map: map:
- config:rw - addon_config:rw
- homeassistant_config:rw
- share:rw - share:rw
- media:rw - media:rw
- ssl - ssl
@@ -107,4 +108,4 @@ schema:
slug: radarr_nas slug: radarr_nas
udev: true udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/radarr url: https://github.com/alexbelgium/hassio-addons/tree/master/radarr
version: "6.0.4.10291" version: "6.0.4.10291-1"

View File

@@ -1,4 +1,6 @@
#!/bin/bash #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
if [ ! -d /share/storage/movies ]; then if [ ! -d /share/storage/movies ]; then
echo "Creating /share/storage/movies" echo "Creating /share/storage/movies"
@@ -12,16 +14,14 @@ if [ ! -d /share/downloads ]; then
chown -R "$PUID:$PGID" /share/downloads chown -R "$PUID:$PGID" /share/downloads
fi fi
if [ -d /config/radarr ] && [ ! -d /config/addons_config/radarr ]; then slug=radarr
echo "Moving to new location /config/addons_config/radarr"
mkdir -p /config/addons_config/radarr if [ -d "/homeassistant/addons_config/$slug" ]; then
chown -R "$PUID:$PGID" /config/addons_config/radarr echo "Migrating /homeassistant/addons_config/$slug to /addon_configs/xxx-$slug"
mv /config/radarr/* /config/addons_config/radarr/ cp -rnf /homeassistant/addons_config/"$slug"/. /config/ || true
rm -r /config/radarr mv /homeassistant/addons_config/"$slug" /homeassistant/addons_config/"$slug"_migrated
fi fi
if [ ! -d /config/addons_config/radarr ]; then if [ -d /config/addons_config ]; then
echo "Creating /config/addons_config/radarr" rm -rf /config/addons_config
mkdir -p /config/addons_config/radarr
chown -R "$PUID:$PGID" /config/addons_config/radarr
fi fi

View File

@@ -21,7 +21,7 @@ sed -i "s|%%ingress_entry%%|${ingress_entry}|g" /etc/nginx/servers/ingress.conf
# Values # Values
slug=radarr slug=radarr
CONFIG_LOCATION=/config/addons_config/"$slug"/config.xml CONFIG_LOCATION=/config/config.xml
if [ -f "$CONFIG_LOCATION" ]; then if [ -f "$CONFIG_LOCATION" ]; then

View File

@@ -6,7 +6,7 @@ set -e
# Set variables # Set variables
slug=radarr slug=radarr
port=7878 port=7878
CONFIG_LOCATION=/config/addons_config/"$slug"/config.xml CONFIG_LOCATION=/config/config.xml
# Wait for transmission to become available # Wait for transmission to become available
bashio::net.wait_for "$port" localhost 900 bashio::net.wait_for "$port" localhost 900

View File

@@ -1,3 +1,9 @@
## 0.4.18-2 (08-01-2026)
- Remove CONFIG_LOCATION option now that config lives under /addon_configs by default
## 0.4.18-1 (08-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/readarr to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-readarr_nas. This avoids the addon to mess with your homeassistant configuration folder, and allows to backup the options. Migration of data should be automatic. Please be sure to update all your links however ! For more information, see here : https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/
- 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.
## 0.4.19.2811 (28-06-2025) ## 0.4.19.2811 (28-06-2025)

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/readarr" 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

@@ -61,7 +61,6 @@ 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 Readarr config is stored |
| `connection_mode` | list | `ingress_noauth` | Connection mode (ingress_noauth/noingress_auth/ingress_auth) | | `connection_mode` | list | `ingress_noauth` | Connection mode (ingress_noauth/noingress_auth/ingress_auth) |
| `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`) |
@@ -81,7 +80,6 @@ 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"
connection_mode: "ingress_noauth" connection_mode: "ingress_noauth"
localdisks: "sda1,sdb1" localdisks: "sda1,sdb1"
networkdisks: "//192.168.1.100/books,//nas.local/ebooks" networkdisks: "//192.168.1.100/books,//nas.local/ebooks"
@@ -104,7 +102,7 @@ This addon supports custom scripts and environment variables:
- **Custom scripts**: See [Running Custom Scripts in Addons](https://github.com/alexbelgium/hassio-addons/wiki/Running-custom-scripts-in-Addons) - **Custom scripts**: See [Running Custom Scripts in Addons](https://github.com/alexbelgium/hassio-addons/wiki/Running-custom-scripts-in-Addons)
- **env_vars option**: Use the add-on `env_vars` option to pass extra environment variables (uppercase or lowercase names). See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details. - **env_vars option**: Use the add-on `env_vars` option to pass extra environment variables (uppercase or lowercase names). See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
You can add environment variables by creating `/config/addons_config/readarr_nas.yml`: You can add environment variables by creating `/addon_configs/xxx-readarr_nas/readarr_nas.yml`:
```yaml ```yaml
TZ: Europe/Paris TZ: Europe/Paris
@@ -121,5 +119,3 @@ Create an issue on github
![illustration](https://readarr.com/img/slider/artistdetails.png) ![illustration](https://readarr.com/img/slider/artistdetails.png)
[repository]: https://github.com/alexbelgium/hassio-addons [repository]: https://github.com/alexbelgium/hassio-addons

View File

@@ -72,13 +72,13 @@ ingress: true
ingress_entry: readarr ingress_entry: readarr
init: false init: false
map: map:
- config:rw - addon_config:rw
- homeassistant_config:rw
- share:rw - share:rw
- media:rw - media:rw
name: Readarr name: Readarr
options: options:
env_vars: [] env_vars: []
CONFIG_LOCATION: /config/addons_config/readarr
PGID: 0 PGID: 0
PUID: 0 PUID: 0
connection_mode: ingress_noauth connection_mode: ingress_noauth
@@ -95,7 +95,6 @@ schema:
env_vars: env_vars:
- name: match(^[A-Za-z0-9_]+$) - name: match(^[A-Za-z0-9_]+$)
value: str? value: str?
CONFIG_LOCATION: str
PGID: int PGID: int
PUID: int PUID: int
TZ: str? TZ: str?
@@ -108,4 +107,4 @@ schema:
slug: readarr_nas slug: readarr_nas
udev: true udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/readarr url: https://github.com/alexbelgium/hassio-addons/tree/master/readarr
version: 0.4.18 version: "0.4.18-2"

View File

@@ -2,19 +2,8 @@
# shellcheck shell=bash # shellcheck shell=bash
set -e set -e
if bashio::config.has_value 'CONFIG_LOCATION'; then CONFIG_LOCATION="/config"
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
# Modify if it is a base directory
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname "$CONFIG_LOCATION")"; fi
fi
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION')
bashio::log.info "Config stored in $CONFIG_LOCATION" bashio::log.info "Config stored in $CONFIG_LOCATION"
mkdir -p "$CONFIG_LOCATION" mkdir -p "$CONFIG_LOCATION"
chown -R "$PUID:$PGID" "$CONFIG_LOCATION" chown -R "$PUID:$PGID" "$CONFIG_LOCATION"
# shellcheck disable=SC2013
for file in $(grep -sril "/config/addons_config/readarr" /etc /defaults); do
sed -i "s|/config/addons_config/readarr|$CONFIG_LOCATION|g" "$file"
done

View File

@@ -1,4 +1,6 @@
#!/bin/bash #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
if [ ! -d /share/storage/ebook ]; then if [ ! -d /share/storage/ebook ]; then
echo "Creating /share/storage/ebook" echo "Creating /share/storage/ebook"
@@ -12,21 +14,19 @@ if [ ! -d /share/downloads ]; then
chown -R "$PUID:$PGID" /share/downloads chown -R "$PUID:$PGID" /share/downloads
fi fi
if [ -d /config/readarr ] && [ ! -d /config/addons_config/readarr ]; then slug=readarr
echo "Moving to new location /config/addons_config/readarr"
mkdir -p /config/addons_config/readarr if [ -d "/homeassistant/addons_config/$slug" ]; then
chown -R "$PUID:$PGID" /config/addons_config/readarr echo "Migrating /homeassistant/addons_config/$slug to /addon_configs/xxx-$slug"
mv /config/readarr/* /config/addons_config/readarr/ cp -rnf /homeassistant/addons_config/"$slug"/. /config/ || true
rm -r /config/readarr mv /homeassistant/addons_config/"$slug" /homeassistant/addons_config/"$slug"_migrated
fi fi
if [ ! -d /config/addons_config/readarr ]; then if [ -d /config/addons_config ]; then
echo "Creating /config/addons_config/readarr" rm -rf /config/addons_config
mkdir -p /config/addons_config/readarr
chown -R "$PUID:$PGID" /config/addons_config/readarr
fi fi
if [ -d /config/addons_config/readarr/readarr ]; then if [ -d /config/readarr ]; then
mv /config/addons_config/readarr/readarr/{.,}* /config/addons_config/readarr/ mv /config/readarr/{.,}* /config/ || true
rmdir /config/addons_config/readarr/readarr rmdir /config/readarr || true
fi fi

View File

@@ -21,7 +21,7 @@ sed -i "s|%%ingress_entry%%|${ingress_entry}|g" /etc/nginx/servers/ingress.conf
# Values # Values
slug=readarr slug=readarr
CONFIG_LOCATION=/config/addons_config/"$slug"/config.xml CONFIG_LOCATION=/config/config.xml
if [ -f "$CONFIG_LOCATION" ]; then if [ -f "$CONFIG_LOCATION" ]; then

View File

@@ -6,18 +6,11 @@ set -e
# Set variables # Set variables
slug=readarr slug=readarr
port=8787 port=8787
CONFIG_LOCATION=/config/addons_config/"$slug"/config.xml CONFIG_LOCATION=/config/config.xml
# Wait for transmission to become available # Wait for transmission to become available
bashio::net.wait_for "$port" localhost 900 bashio::net.wait_for "$port" localhost 900
if bashio::config.has_value 'CONFIG_LOCATION'; then
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
# Modify if it is a base directory
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi
CONFIG_LOCATION="$CONFIG_LOCATION"/config.xml
fi
# Delete external # Delete external
if grep -q "external" "$CONFIG_LOCATION"; then if grep -q "external" "$CONFIG_LOCATION"; then
bashio::log.warning "external is set, restarting" bashio::log.warning "external is set, restarting"

View File

@@ -1,4 +1,7 @@
## 4.0.16.2946-1 (08-01-2026)
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config/addons_config/sonarr to a folder only accessible from my Filebrowser addon called /addon_configs/xxx-sonarr_nas. This avoids the addon to mess with your homeassistant configuration folder, and allows to backup the options. Migration of data should be automatic. Please be sure to update all your links however ! For more information, see here : https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/
## 4.0.16.2946 (27-12-2025) ## 4.0.16.2946 (27-12-2025)
- Update to latest version from linuxserver/docker-sonarr (changelog : https://github.com/linuxserver/docker-sonarr/releases) - Update to latest version from linuxserver/docker-sonarr (changelog : https://github.com/linuxserver/docker-sonarr/releases)
- The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release - The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release

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/sonarr" 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

@@ -74,7 +74,8 @@ ingress: true
ingress_entry: sonarr ingress_entry: sonarr
init: false init: false
map: map:
- config:rw - addon_config:rw
- homeassistant_config:rw
- share:rw - share:rw
- media:rw - media:rw
- ssl - ssl
@@ -109,4 +110,4 @@ schema:
slug: sonarr_nas slug: sonarr_nas
udev: true udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/sonarr url: https://github.com/alexbelgium/hassio-addons/tree/master/sonarr
version: "4.0.16.2946" version: "4.0.16.2946-1"

View File

@@ -1,4 +1,6 @@
#!/bin/bash #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
if [ ! -d /share/storage/tv ]; then if [ ! -d /share/storage/tv ]; then
echo "Creating /share/storage/tv" echo "Creating /share/storage/tv"
@@ -12,16 +14,14 @@ if [ ! -d /share/downloads ]; then
chown -R "$PUID:$PGID" /share/downloads chown -R "$PUID:$PGID" /share/downloads
fi fi
if [ -d /config/sonarr ] && [ ! -d /config/addons_config/sonarr ]; then slug=sonarr
echo "Moving to new location /config/addons_config/sonarr"
mkdir -p /config/addons_config/sonarr if [ -d "/homeassistant/addons_config/$slug" ]; then
chown -R "$PUID:$PGID" /config/addons_config/sonarr echo "Migrating /homeassistant/addons_config/$slug to /addon_configs/xxx-$slug"
mv /config/sonarr/* /config/addons_config/sonarr/ cp -rnf /homeassistant/addons_config/"$slug"/. /config/ || true
rm -r /config/sonarr mv /homeassistant/addons_config/"$slug" /homeassistant/addons_config/"$slug"_migrated
fi fi
if [ ! -d /config/addons_config/sonarr ]; then if [ -d /config/addons_config ]; then
echo "Creating /config/addons_config/sonarr" rm -rf /config/addons_config
mkdir -p /config/addons_config/sonarr
chown -R "$PUID:$PGID" /config/addons_config/sonarr
fi fi

View File

@@ -21,7 +21,7 @@ sed -i "s|%%ingress_entry%%|${ingress_entry}|g" /etc/nginx/servers/ingress.conf
# Values # Values
slug=sonarr slug=sonarr
CONFIG_LOCATION=/config/addons_config/"$slug"/config.xml CONFIG_LOCATION=/config/config.xml
if [ -f "$CONFIG_LOCATION" ]; then if [ -f "$CONFIG_LOCATION" ]; then

View File

@@ -6,7 +6,7 @@ set -e
# Set variables # Set variables
slug=sonarr slug=sonarr
port=8989 port=8989
CONFIG_LOCATION=/config/addons_config/"$slug"/config.xml CONFIG_LOCATION=/config/config.xml
# Wait for transmission to become available # Wait for transmission to become available
bashio::net.wait_for "$port" localhost 900 bashio::net.wait_for "$port" localhost 900