Compare commits

...

3 Commits

Author SHA1 Message Date
Alexandre
dbf17a9d1b Merge pull request #2773 from rojuvi/fix/wger-database-location
Fix wger database location after update to the latest version
2026-06-16 16:48:03 +02:00
Rodrigo
7007ebf52d Update changelog and version 2026-06-16 15:50:58 +02:00
Rodrigo
348c29d9ac Update settings file lookup filter since settings.py was moved to several python files within settings folder 2026-06-16 13:28:49 +02:00
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