templates/deployment.yaml を更新
This commit is contained in:
@@ -159,14 +159,12 @@ spec:
|
|||||||
/tmp/wp-cli.phar --path=/var/www/html core update-db 2>/dev/null || echo "No database update needed"
|
/tmp/wp-cli.phar --path=/var/www/html core update-db 2>/dev/null || echo "No database update needed"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
{{- if .Values.wordpress.adsTxt.enabled }}
|
{{- if .Values.wordpress.adsTxt.enabled }}
|
||||||
|
|
||||||
echo "Deploying ads.txt..."
|
echo "Deploying ads.txt..."
|
||||||
cat > /var/www/html/ads.txt <<'ADSTXTEOF'
|
printf '%s\n' '{{ .Values.wordpress.adsTxt.content }}' > /var/www/html/ads.txt
|
||||||
{{ .Values.wordpress.adsTxt.content }}
|
|
||||||
ADSTXTEOF
|
|
||||||
echo "ads.txt deployed"
|
echo "ads.txt deployed"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
echo "=== WordPress Initialization Completed ==="
|
echo "=== WordPress Initialization Completed ==="
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
Reference in New Issue
Block a user