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

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/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
##################

View File

@@ -72,7 +72,8 @@ ingress: true
ingress_entry: radarr
init: false
map:
- config:rw
- addon_config:rw
- homeassistant_config:rw
- share:rw
- media:rw
- ssl
@@ -107,4 +108,4 @@ schema:
slug: radarr_nas
udev: true
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
echo "Creating /share/storage/movies"
@@ -12,16 +14,10 @@ if [ ! -d /share/downloads ]; then
chown -R "$PUID:$PGID" /share/downloads
fi
if [ -d /config/radarr ] && [ ! -d /config/addons_config/radarr ]; then
echo "Moving to new location /config/addons_config/radarr"
mkdir -p /config/addons_config/radarr
chown -R "$PUID:$PGID" /config/addons_config/radarr
mv /config/radarr/* /config/addons_config/radarr/
rm -r /config/radarr
fi
slug=radarr
if [ ! -d /config/addons_config/radarr ]; then
echo "Creating /config/addons_config/radarr"
mkdir -p /config/addons_config/radarr
chown -R "$PUID:$PGID" /config/addons_config/radarr
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

View File

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

View File

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