diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index c22af76..7ce7385 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/bash -+set -euo pipefail +set -euo pipefail echo "=== Container Starting ===" echo "Running initialization script..." diff --git a/docker/init.sh b/docker/init.sh index 6fd8671..92d6507 100644 --- a/docker/init.sh +++ b/docker/init.sh @@ -65,6 +65,14 @@ if [ -f "/app/composer.json" ] && [ ! -d "/app/vendor" ]; then echo -e "${GREEN}✓ Composer dependencies installed successfully.${NC}" fi +# Set permissions for node_modules directory if it exists +if chown -R www-data:www-data /app/node_modules 2>/dev/null; then + chmod -R 775 /app/node_modules + echo -e "${GREEN}✓ Node modules directory ownership set${NC}" +else + echo -e "${YELLOW}⚠ Node modules directory ownership could not be set (mounted volume?)${NC}" +fi + echo -e "${GREEN}Starting supervisord...${NC}" # Start supervisord