Skip to content

Commit b7479f2

Browse files
committed
fix: Ensure proper ownership and permissions setup for node_modules directory after Composer installation.
1 parent 5735fee commit b7479f2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docker/init.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ if [ -f "/app/composer.json" ] && [ ! -d "/app/vendor" ]; then
6262
echo -e "${GREEN}✓ Vendor directory ownership set${NC}"
6363
fi
6464

65-
# Set permissions for node_modules directory if it exists
66-
if chown -R www-data:www-data /app/node_modules 2>/dev/null; then
67-
chmod -R 775 /app/node_modules
68-
echo -e "${GREEN}✓ Node modules directory ownership set${NC}"
69-
else
70-
echo -e "${YELLOW}⚠ Node modules directory ownership could not be set (mounted volume?)${NC}"
71-
fi
72-
7365
echo -e "${GREEN}✓ Composer dependencies installed successfully.${NC}"
7466
fi
7567

68+
# Set permissions for node_modules directory if it exists
69+
if chown -R www-data:www-data /app/node_modules 2>/dev/null; then
70+
chmod -R 775 /app/node_modules
71+
echo -e "${GREEN}✓ Node modules directory ownership set${NC}"
72+
else
73+
echo -e "${YELLOW}⚠ Node modules directory ownership could not be set (mounted volume?)${NC}"
74+
fi
75+
7676
echo -e "${GREEN}Starting supervisord...${NC}"
7777

7878
# Start supervisord

0 commit comments

Comments
 (0)