mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-03 18:37:42 +01:00
Use CONFIG_LOCATION only for migration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user