fix: move permission fix after category seeding in startup.sh

The chown was running before cp seeded categories from initial-categories,
so the copied files remained owned by root. Now permissions are fixed
after all file operations complete.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
furkanyigit34
2026-03-08 01:44:08 +03:00
parent 1bcb88a941
commit bc9af71d17

View File

@@ -46,6 +46,11 @@ if [ -d "/data/initial-categories" ] && [ "$(ls -A /data/initial-categories 2>/d
fi
fi
# Fix permissions again after seeding (seeding runs as root)
echo "🔧 Final permission fix..."
chown -R appuser:appuser /data 2>/dev/null || true
chmod -R 755 /data 2>/dev/null || true
# Run migrations
echo "🔄 Running database migrations..."
alembic upgrade head