Fixes Url building for Agent download

This commit is contained in:
Lord Hepipud 2019-11-02 17:43:19 +01:00
parent b6f3d52f96
commit 1968a3169c

View file

@ -62,7 +62,7 @@ function Get-IcingaAgentMSIPackage()
if ($SkipDownload -eq $FALSE) { if ($SkipDownload -eq $FALSE) {
$DownloadPath = Join-Path $Env:TEMP -ChildPath $UsePackage; $DownloadPath = Join-Path $Env:TEMP -ChildPath $UsePackage;
Write-Host ([string]::Format('Downloading Icinga 2 Agent installer "{0}" into temp directory "{1}"', $UsePackage, $DownloadPath)); Write-Host ([string]::Format('Downloading Icinga 2 Agent installer "{0}" into temp directory "{1}"', $UsePackage, $DownloadPath));
Invoke-WebRequest -Uri ([string]::Format('{0}/{1}', $Source, $UsePackage)) -OutFile $DownloadPath; Invoke-WebRequest -Uri (Join-WebPath -Path $Source -ChildPath $UsePackage) -OutFile $DownloadPath;
} }
return @{ return @{