diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8ae7a83f..98bf99aa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -169,6 +169,10 @@ jobs: run: | ssh ${{ env.HETZNER_USER }}@${{ env.HETZNER_HOST }} " cd ${{ env.DEPLOY_PATH }} + + # Make sure the script is executable + chmod +x scripts/* + ./scripts/migrate-all-sites.sh " diff --git a/scripts/migrate-all-sites.sh b/scripts/migrate-all-sites.sh index d884b5c7..6f7c0538 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 /workspace/development/frappe-bench/sites | grep -v '^apps.txt$' | 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 -v '^apps.txt$' | grep -v '^apps.json$' | grep -v '^common_site_config.json$' | grep -v '^assets$' | grep -v '^\..*$') if [ -z "$SITES" ]; then echo "❌ No sites found!"