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: