fix: Add permission fix step before artisan commands in setup.sh

This commit is contained in:
2026-03-15 11:53:46 +02:00
parent fdbd8f5148
commit 6fe63d70af

View File

@@ -140,6 +140,13 @@ sleep 3
echo -e "${GREEN}✓ App container ready${NC}"
echo ""
# Step 5.5: Fix permissions on storage and bootstrap/cache
echo -e "${YELLOW}→ Setting directory permissions...${NC}"
chmod -R 777 src/storage src/bootstrap/cache 2>/dev/null || true
docker compose exec -T app chmod -R 777 storage bootstrap/cache 2>/dev/null || true
echo -e "${GREEN}✓ Permissions set${NC}"
echo ""
# Step 6: Wait for database
if [ "$DB" = "mysql" ]; then
echo -e "${YELLOW}→ Waiting for MySQL to be ready...${NC}"