Skip to content

Commit 8b78475

Browse files
author
Ramkumar Chinchani
committed
feat: add directory creation for RCV1P certificates if it doesn't exist
1 parent aa2b903 commit 8b78475

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

parts/windows/kuberneteswindowssetup.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ function Install-RCV1PCertificateFile {
375375
function Invoke-RCV1PCertificateRefresh {
376376
try {
377377
Write-RCV1PLog "Starting RCV1P certificate refresh"
378-
Create-Directory -FullPath $global:RCV1PCertificatesDirectory -DirectoryUsage "storing RCV1P certificates"
378+
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+
}
379382

380383
$certificates = @()
381384
if (Get-RCV1POptInStatus) {

0 commit comments

Comments
 (0)