Merge pull request #2773 from rojuvi/fix/wger-database-location

Fix wger database location after update to the latest version
This commit is contained in:
Alexandre
2026-06-16 16:48:03 +02:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
## 2.6-dev-2 (2026-06-16)
- Fix startup script database path rewrite by switching the `settings.py` matching with `*.py` since last update moved the settings.py file into several files within the settings folder
## 2.6-dev (2026-04-23)
- Update to latest version from wger/server
## 2.5-dev-3 (2026-03-09)

View File

@@ -23,5 +23,5 @@ schema:
slug: wger
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "2.6-dev"
version: "2.6-dev-2"
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"

View File

@@ -4,7 +4,7 @@
# Change database location #
############################
echo "... set database path"
mapfile -t SETTINGS_FILES < <(grep -rl --include='settings.py' '/home/wger/db/database.sqlite' /home 2> /dev/null || true)
mapfile -t SETTINGS_FILES < <(grep -rl --include='*.py' '/home/wger/db/database.sqlite' /home 2> /dev/null || true)
if [ "${#SETTINGS_FILES[@]}" -gt 0 ]; then
for settings_file in "${SETTINGS_FILES[@]}"; do