templates/deployment.yaml を更新

This commit is contained in:
2025-12-12 00:22:18 +00:00
parent 9c3e1cc251
commit c282fe989e

View File

@@ -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'
{{ .Values.wordpress.adsTxt.content }}
ADSTXTEOF
echo "ads.txt deployed"
fi
{{- end }}
echo "=== WordPress Initialization Completed ==="
volumeMounts: