now the script wont exit on missing sites case

This commit is contained in:
Mate Majoros 2026-01-08 15:51:10 +02:00
parent 23e5b0ce27
commit f449a3d521

View file

@ -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!"