From f449a3d52184c8d211b2e9de090242c7e7b906ef Mon Sep 17 00:00:00 2001 From: Mate Majoros Date: Thu, 8 Jan 2026 15:51:10 +0200 Subject: [PATCH] now the script wont exit on missing sites case --- scripts/migrate-all-sites.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/migrate-all-sites.sh b/scripts/migrate-all-sites.sh index 53ed0751..683b916c 100755 --- a/scripts/migrate-all-sites.sh +++ b/scripts/migrate-all-sites.sh @@ -6,7 +6,7 @@ set -e echo "🔄 Starting migration for all sites..." # Get list of all sites -SITES=$(docker compose exec -T backend ls -1 /home/frappe/frappe-bench/sites | grep -v '^apps.txt$' | grep -v '^apps.json$' | grep -v '^common_site_config.json$' | grep -v '^assets$' | grep -v '^\..*$') +SITES=$(docker compose exec -T backend ls -1 /home/frappe/frappe-bench/sites grep -vE '^(apps\.txt|apps\.json|common_site_config\.json|assets|\..*)$' || true) if [ -z "$SITES" ]; then echo "❌ No sites found!"