Migrate *arr addons to addon_configs

This commit is contained in:
Alexandre
2026-01-08 13:30:21 +01:00
parent 1f1bd9610c
commit 3979acc25f
32 changed files with 107 additions and 108 deletions

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)
- 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

View File

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

View File

@@ -71,7 +71,8 @@ environment:
image: ghcr.io/alexbelgium/lidarr_nas-{arch}
init: false
map:
- config:rw
- addon_config:rw
- homeassistant_config:rw
- share:rw
- media:rw
name: Lidarr NAS
@@ -101,5 +102,5 @@ schema:
slug: lidarr_nas
udev: true
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]"

View File

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