templates/deployment.yaml を更新

This commit is contained in:
2025-12-12 05:51:56 +00:00
parent f672031bf1
commit d6500da650

View File

@@ -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: