File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- + set -euo pipefail
2+ set -euo pipefail
33
44echo " === Container Starting ==="
55echo " Running initialization script..."
Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ if [ -f "/app/composer.json" ] && [ ! -d "/app/vendor" ]; then
6565 echo -e " ${GREEN} ✓ Composer dependencies installed successfully.${NC} "
6666fi
6767
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+
6876echo -e " ${GREEN} Starting supervisord...${NC} "
6977
7078# Start supervisord
You can’t perform that action at this time.
0 commit comments