Skip to content

Commit

Permalink
Merge pull request #71 from phillipsj/bugfix/monitoring-chart-fix
Browse files Browse the repository at this point in the history
Copying the wins.exe to the location expected by monitoring chart.
  • Loading branch information
phillipsj authored Dec 14, 2021
2 parents d1827da + ad12241 commit 3533580
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,14 @@ systemagent:
}
}

function Copy-WinsForCharts() {
$winsForChartsPath = "c:/windows"
if (-Not (Test-Path $winsForChartsPath)) {
New-Item $winsForChartsPath -ItemType Directory
}
Copy-Item -Path "$env:CATTLE_AGENT_BIN_PREFIX/bin/wins.exe" -Destination "$winsForChartsPath/wins.exe" -Force
}

function Invoke-WinsAgentInstall() {
$serviceName = "rancher-wins"
Get-Args
Expand All @@ -550,6 +558,7 @@ systemagent:
Test-RancherConnection
Stop-Agent -ServiceName $serviceName
Invoke-WinsAgentDownload
Copy-WinsForCharts
Set-WinsConfig

if ($env:CATTLE_TOKEN) {
Expand Down

0 comments on commit 3533580

Please sign in to comment.