From c282fe989edcc1a249bc6d3ed7dccf104a428b08 Mon Sep 17 00:00:00 2001 From: pieter Date: Fri, 12 Dec 2025 00:22:18 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 8f367cf..e6be35b 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -171,14 +171,14 @@ spec: echo "Target WordPress version: $CURRENT_VERSION" /tmp/wp-cli.phar --path=/var/www/html core update-db 2>/dev/null || echo "No database update needed" fi + {{- if .Values.wordpress.adsTxt.enabled }} - if [ "${{ .Values.wordpress.adsTxt.enabled }}" = "true" ]; then - echo "Deploying ads.txt..." - cat > /var/www/html/ads.txt <<'ADSTXTEOF' + echo "Deploying ads.txt..." + cat > /var/www/html/ads.txt <<'ADSTXTEOF' {{ .Values.wordpress.adsTxt.content }} ADSTXTEOF - echo "ads.txt deployed" - fi + echo "ads.txt deployed" + {{- end }} echo "=== WordPress Initialization Completed ===" volumeMounts: