mirror of
https://github.com/nethunterzist/trendyol-analiz
synced 2026-07-01 01:17:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user