mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Migrate to new config logic https://github.com/alexbelgium/hassio-addons/issues/1144
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
- ⚠ MAJOR CHANGE : switch to the new config logic from homeassistant. Your configuration files will have migrated from /config to a folder only accessible from my Filebrowser addon called /addon_configs/db21ed7f_unpackerr. This avoids the addon to mess with your homeassistant configuration folder, and allows to backup the options. Migration of data, custom configs, and custom scripts 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/
|
||||||
|
|
||||||
## testing-e916f00-9-linux-arm64-2023-09-17 (2023-09-17)
|
## testing-e916f00-9-linux-arm64-2023-09-17 (2023-09-17)
|
||||||
- Update to latest version from hotio/unpackerr
|
- Update to latest version from hotio/unpackerr
|
||||||
|
|
||||||
|
|||||||
@@ -60,9 +60,10 @@
|
|||||||
"image": "ghcr.io/alexbelgium/unpackerr-{arch}",
|
"image": "ghcr.io/alexbelgium/unpackerr-{arch}",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
|
||||||
"share:rw",
|
|
||||||
"media:rw",
|
"media:rw",
|
||||||
|
"addon_config:rw",
|
||||||
|
"homeassistant_config:rw",
|
||||||
|
"share:rw",
|
||||||
"ssl"
|
"ssl"
|
||||||
],
|
],
|
||||||
"name": "Unpackerr",
|
"name": "Unpackerr",
|
||||||
@@ -85,7 +86,8 @@
|
|||||||
"extraction_path": "str?",
|
"extraction_path": "str?",
|
||||||
"localdisks": "str?",
|
"localdisks": "str?",
|
||||||
"networkdisks": "str?",
|
"networkdisks": "str?",
|
||||||
"watch_path": "str?"
|
"watch_path": "str?",
|
||||||
|
"TZ": "str?"
|
||||||
},
|
},
|
||||||
"slug": "unpackerr",
|
"slug": "unpackerr",
|
||||||
"udev": true,
|
"udev": true,
|
||||||
|
|||||||
6
unpackerr/rootfs/etc/cont-init.d/01-migration.sh
Normal file
6
unpackerr/rootfs/etc/cont-init.d/01-migration.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/bashio
|
||||||
|
|
||||||
|
if [ -f /homeassistant/unpackerr.conf ]; then
|
||||||
|
bashio::log.warning "Migrating unpackerr.conf to /addons_configs/$HOSTNAME/unpackerr.conf"
|
||||||
|
mv /homeassistant/unpackerr.conf /config/unpackerr.conf
|
||||||
|
fi
|
||||||
@@ -1,11 +1,14 @@
|
|||||||
#!/usr/bin/bashio
|
#!/usr/bin/bashio
|
||||||
|
|
||||||
# Set user
|
# Set user
|
||||||
if bashio::config.has_value 'PUID'; then PUID="$(bashio::config 'PUID')"; fi
|
if bashio::config.has_value 'PUID'; then export PUID="$(bashio::config 'PUID')"; fi
|
||||||
if bashio::config.has_value 'PGID'; then PGID="$(bashio::config 'PGID')"; fi
|
if bashio::config.has_value 'PGID'; then export PGID="$(bashio::config 'PGID')"; fi
|
||||||
|
if bashio::config.has_value 'TZ'; then export TZ="$(bashio::config 'TZ')"; fi
|
||||||
|
|
||||||
# Enable watch folder
|
# Enable watch folder
|
||||||
if bashio::config.has_value "watch_path"; then
|
if bashio::config.has_value "watch_path"; then
|
||||||
|
# Info
|
||||||
|
bashio::log.info "Watch path is $(bashio::config 'watch_path'), creating folder and setting permission"
|
||||||
# Enables folders
|
# Enables folders
|
||||||
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
||||||
# Set downloads path
|
# Set downloads path
|
||||||
@@ -20,6 +23,8 @@ fi
|
|||||||
|
|
||||||
# Enable extraction folder
|
# Enable extraction folder
|
||||||
if bashio::config.has_value "extraction_path"; then
|
if bashio::config.has_value "extraction_path"; then
|
||||||
|
# Info
|
||||||
|
bashio::log.info "Extraction path is $(bashio::config 'extraction_path'), creating folder and setting permission"
|
||||||
# Enables folders
|
# Enables folders
|
||||||
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
sed -i "/[[folder]]/c [[folder]]" /config/unpackerr.conf
|
||||||
# Set extraction path
|
# Set extraction path
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"last_update": "2023-09-17",
|
"last_update": "2023-09-17",
|
||||||
"repository": "alexbelgium/hassio-addons",
|
"repository": "alexbelgium/hassio-addons",
|
||||||
"slug": "unpackerr",
|
"slug": "unpackerr",
|
||||||
"source": "dockerhub",
|
"source": "github",
|
||||||
"upstream_repo": "hotio/unpackerr",
|
"upstream_repo": "Unpackerr/unpackerr",
|
||||||
"upstream_version": "testing-e916f00-9-linux-arm64-2023-09-17"
|
"upstream_version": "testing-e916f00-9-linux-arm64-2023-09-17"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user