mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Merge pull request #2244 from alexbelgium/codex/modify-netalertx-add-on-for-tmpfs
Clarify migration preserves existing config data
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
- Breaking change: data directories now use /data symlinks to /config; back up your installation before updating. Migration is supported only from version v25.5.24.
|
||||
- Added tmpfs support for temporary storage.
|
||||
- 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
|
||||
|
||||
- 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.
|
||||
|
||||
## 25.10.1 (04-10-2025)
|
||||
|
||||
@@ -49,7 +49,7 @@ comparison to installing any other Hass.io add-on.
|
||||
## Configuration
|
||||
|
||||
1. If unavailable, the app generates a default `app.conf` and `app.db` file on the first run.
|
||||
1. The preferred way is to manage the configuration via the Settings section in the UI, if UI is inaccessible you can modify `app.conf` in the `/app/config/` folder directly.
|
||||
1. The preferred way is to manage the configuration via the Settings section in the UI, if UI is inaccessible you can modify `app.conf` in the `/config/config/` folder directly.
|
||||
1. You have to specify which network(s) should be scanned. This is done by entering subnets that are accessible from the host. If you use the default `ARPSCAN` plugin, you have to specify at least one valid subnet and interface in the `SCAN_SUBNETS` setting. See the [documentation on How to set up multiple SUBNETS, VLANs and what are limitations](https://github.com/jokob-sk/NetAlertX/blob/main/docs/SUBNETS.md) and for troubleshooting and more advanced scenarios.
|
||||
1. Read how to get devices into your [Home Assistant instance via the MQTT plugin](https://github.com/jokob-sk/NetAlertX/blob/main/docs/HOME_ASSISTANT.md)
|
||||
1. Back everything up by following the [Backups documentation](https://github.com/jokob-sk/NetAlertX/blob/main/docs/BACKUPS.md).
|
||||
|
||||
@@ -43,6 +43,7 @@ schema:
|
||||
services:
|
||||
- mqtt:want
|
||||
slug: netalertx
|
||||
tmpfs: true
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: 25.10.1
|
||||
version: 25.10.1-2
|
||||
|
||||
@@ -12,13 +12,22 @@ bashio::log.info "Update structure"
|
||||
echo "Creating symlinks"
|
||||
for folder in config db; do
|
||||
echo "Creating for $folder"
|
||||
# Create symlinks
|
||||
mkdir -p /config/"$folder"
|
||||
if [ -d /app/"$folder" ] && [ "$(ls -A /app/"$folder")" ]; then
|
||||
cp -rn /app/"$folder"/* /config/"$folder"/
|
||||
fi
|
||||
rm -r /app/"$folder"
|
||||
ln -sf /config/"$folder" /app/"$folder"
|
||||
target="/config/${folder}"
|
||||
mkdir -p "$target"
|
||||
|
||||
# Migrate existing data from previous locations while avoiding self-copies
|
||||
for legacy_path in "/app/${folder}" "/data/${folder}"; do
|
||||
if [ -d "$legacy_path" ]; then
|
||||
legacy_target="$(readlink -f "$legacy_path" || true)"
|
||||
if [ "$legacy_target" != "$target" ] && [ "$(ls -A "$legacy_path")" ]; then
|
||||
# -n prevents clobbering anything already present in /config
|
||||
cp -rn "$legacy_path"/. "$target"/
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
rm -rf /data/"$folder"
|
||||
ln -sf "$target" /data/"$folder"
|
||||
done
|
||||
|
||||
sudo chown -R nginx:www-data /config/db/
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"last_update": "04-10-2025",
|
||||
"last_update": "29-11-2025",
|
||||
"repository": "alexbelgium/hassio-addons",
|
||||
"slug": "netalertx",
|
||||
"source": "github",
|
||||
"upstream_repo": "jokob-sk/NetAlertX",
|
||||
"upstream_version": "25.10.1"
|
||||
"upstream_version": "25.10.1-2"
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ schema:
|
||||
services:
|
||||
- mqtt:want
|
||||
slug: netalertx_fa
|
||||
tmpfs: true
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: 25.10.1
|
||||
version: 25.10.1-2
|
||||
|
||||
Reference in New Issue
Block a user