From d6500da650941d967605427123d39a848c4c3323 Mon Sep 17 00:00:00 2001 From: pieter Date: Fri, 12 Dec 2025 05:51:56 +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, 3 insertions(+), 5 deletions(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index b3c1eb6..31d7393 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -159,14 +159,12 @@ spec: /tmp/wp-cli.phar --path=/var/www/html core update-db 2>/dev/null || echo "No database update needed" fi fi -{{- if .Values.wordpress.adsTxt.enabled }} + {{- if .Values.wordpress.adsTxt.enabled }} echo "Deploying ads.txt..." - cat > /var/www/html/ads.txt <<'ADSTXTEOF' -{{ .Values.wordpress.adsTxt.content }} -ADSTXTEOF + printf '%s\n' '{{ .Values.wordpress.adsTxt.content }}' > /var/www/html/ads.txt echo "ads.txt deployed" -{{- end }} + {{- end }} echo "=== WordPress Initialization Completed ===" volumeMounts: