From 6fe63d70af4552a30c0236ef9db0853808e80834 Mon Sep 17 00:00:00 2001 From: theRADcozaDEV Date: Sun, 15 Mar 2026 11:53:46 +0200 Subject: [PATCH] fix: Add permission fix step before artisan commands in setup.sh --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.sh b/setup.sh index 57f339a..9239193 100644 --- a/setup.sh +++ b/setup.sh @@ -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}"