execute permissions are given and site check fixed

This commit is contained in:
Mate Majoros 2025-07-18 11:40:10 +03:00
parent 95c7350952
commit 1298b34e38
2 changed files with 5 additions and 1 deletions

View file

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

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