From c225a224983ddb1e2f349767218283557463136e Mon Sep 17 00:00:00 2001 From: pieter Date: Wed, 26 Nov 2025 02:39:32 +0000 Subject: [PATCH] =?UTF-8?q?templates/deployment.yaml=20=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/deployment.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 526af51..85a3174 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -274,7 +274,13 @@ spec: - name: wordpress image: "{{ .Values.image.wordpress.registry }}/{{ .Values.image.wordpress.repository }}:{{ .Values.image.wordpress.tag }}" imagePullPolicy: {{ .Values.image.wordpress.pullPolicy }} - command: ["php-fpm"] + command: + - /bin/sh + - -c + - | + # PHP-FPMの設定を確認・修正 + sed -i 's|chdir = /var/www/html|chdir = /wordpress|g' /usr/local/etc/php-fpm.d/www.conf || true + exec php-fpm securityContext: runAsUser: 82 runAsGroup: 82