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

View File

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

View File

@@ -74,7 +74,8 @@ environment:
image: ghcr.io/alexbelgium/bazarr-{arch}
init: false
map:
- config:rw
- addon_config:rw
- homeassistant_config:rw
- share:rw
- media:rw
- ssl
@@ -105,5 +106,5 @@ schema:
slug: bazarr_nas
udev: true
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]"

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"
@@ -18,16 +20,10 @@ if [ ! -d /share/downloads ]; then
chown -R "$PUID:$PGID" /share/downloads
fi
if [ -d /config/bazarr ] && [ ! -d /config/addons_config/bazarr ]; then
echo "Moving to new location /config/addons_config/bazarr"
mkdir -p /config/addons_config/bazarr
chown -R "$PUID:$PGID" /config/addons_config/bazarr
mv /config/bazarr/* /config/addons_config/bazarr/
rm -r /config/bazarr
fi
slug=bazarr
if [ ! -d /config/addons_config/bazarr ]; then
echo "Creating /config/addons_config/bazarr"
mkdir -p /config/addons_config/bazarr
chown -R "$PUID:$PGID" /config/addons_config/bazarr
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