templates/deployment.yaml を更新
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user