File tree Expand file tree Collapse file tree 6 files changed +12
-6
lines changed
Expand file tree Collapse file tree 6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 6767 Write-Output "Extracting new containerd binaries"
6868 tar.exe -zxvf c:/k/containerd.tar.gz -C "c:/Program Files/containerd" --strip-components 1
6969 # Check if kube-log-runner.exe exists
70- if (Test-Path $kubeloggerPath) {
70+ $kubeloggerPath = Join-Path $env:SYSTEMDRIVE "k\kube-log-runner.exe"
71+ if ($kubeloggerPath -and (Test-Path -Path $kubeloggerPath)) {
7172 Write-Output "Recreating containerd service with kube-log-runner..."
7273 $logPath = "\var\log\containerd"
7374 # Check if directory exists
Original file line number Diff line number Diff line change 6767 Write-Output "Extracting new containerd binaries"
6868 tar.exe -zxvf c:/k/containerd.tar.gz -C "c:/Program Files/containerd" --strip-components 1
6969 # Check if kube-log-runner.exe exists
70- if (Test-Path $kubeloggerPath) {
70+ $kubeloggerPath = Join-Path $env:SYSTEMDRIVE "k\kube-log-runner.exe"
71+ if ($kubeloggerPath -and (Test-Path -Path $kubeloggerPath)) {
7172 Write-Output "Recreating containerd service with kube-log-runner..."
7273 $logPath = "\var\log\containerd"
7374 # Check if directory exists
Original file line number Diff line number Diff line change 6767 Write-Output "Extracting new containerd binaries"
6868 tar.exe -zxvf c:/k/containerd.tar.gz -C "c:/Program Files/containerd" --strip-components 1
6969 # Check if kube-log-runner.exe exists
70- if (Test-Path $kubeloggerPath) {
70+ $kubeloggerPath = Join-Path $env:SYSTEMDRIVE "k\kube-log-runner.exe"
71+ if ($kubeloggerPath -and (Test-Path -Path $kubeloggerPath)) {
7172 Write-Output "Recreating containerd service with kube-log-runner..."
7273 $logPath = "\var\log\containerd"
7374 # Check if directory exists
Original file line number Diff line number Diff line change 6767 Write-Output "Extracting new containerd binaries"
6868 tar.exe -zxvf c:/k/containerd.tar.gz -C "c:/Program Files/containerd" --strip-components 1
6969 # Check if kube-log-runner.exe exists
70- if (Test-Path $kubeloggerPath) {
70+ $kubeloggerPath = Join-Path $env:SYSTEMDRIVE "k\kube-log-runner.exe"
71+ if ($kubeloggerPath -and (Test-Path -Path $kubeloggerPath)) {
7172 Write-Output "Recreating containerd service with kube-log-runner..."
7273 $logPath = "\var\log\containerd"
7374 # Check if directory exists
Original file line number Diff line number Diff line change 6767 Write-Output "Extracting new containerd binaries"
6868 tar.exe -zxvf c:/k/containerd.tar.gz -C "c:/Program Files/containerd" --strip-components 1
6969 # Check if kube-log-runner.exe exists
70- if (Test-Path $kubeloggerPath) {
70+ $kubeloggerPath = Join-Path $env:SYSTEMDRIVE "k\kube-log-runner.exe"
71+ if ($kubeloggerPath -and (Test-Path -Path $kubeloggerPath)) {
7172 Write-Output "Recreating containerd service with kube-log-runner..."
7273 $logPath = "\var\log\containerd"
7374 # Check if directory exists
Original file line number Diff line number Diff line change 6767 Write-Output "Extracting new containerd binaries"
6868 tar.exe -zxvf c:/k/containerd.tar.gz -C "c:/Program Files/containerd" --strip-components 1
6969 # Check if kube-log-runner.exe exists
70- if (Test-Path $kubeloggerPath) {
70+ $kubeloggerPath = Join-Path $env:SYSTEMDRIVE "k\kube-log-runner.exe"
71+ if ($kubeloggerPath -and (Test-Path -Path $kubeloggerPath)) {
7172 Write-Output "Recreating containerd service with kube-log-runner..."
7273 $logPath = "\var\log\containerd"
7374 # Check if directory exists
You can’t perform that action at this time.
0 commit comments