Update settings file lookup filter since settings.py was moved to several python files within settings folder

This commit is contained in:
Rodrigo
2026-06-16 13:28:49 +02:00
committed by GitHub
parent ebd72f8b3c
commit 348c29d9ac

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