We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa2b903 commit 8b78475Copy full SHA for 8b78475
1 file changed
parts/windows/kuberneteswindowssetup.ps1
@@ -375,7 +375,10 @@ function Install-RCV1PCertificateFile {
375
function Invoke-RCV1PCertificateRefresh {
376
try {
377
Write-RCV1PLog "Starting RCV1P certificate refresh"
378
- Create-Directory -FullPath $global:RCV1PCertificatesDirectory -DirectoryUsage "storing RCV1P certificates"
+ if (-not (Test-Path -Path $global:RCV1PCertificatesDirectory)) {
379
+ Write-RCV1PLog "Creating directory $($global:RCV1PCertificatesDirectory) for storing RCV1P certificates"
380
+ New-Item -ItemType Directory -Path $global:RCV1PCertificatesDirectory -Force | Out-Null
381
+ }
382
383
$certificates = @()
384
if (Get-RCV1POptInStatus) {
0 commit comments