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