mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 13:55:08 +00:00
now the script wont exit on missing sites case
This commit is contained in:
parent
23e5b0ce27
commit
f449a3d521
1 changed files with 1 additions and 1 deletions
|
|
@ -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!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue