mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Keep original name of salt executable executable
It is a good idea to not rename anything and keep the original name. Renaming to salt.exe we loose version and arch information.
This commit is contained in:
parent
5d9ede854d
commit
a124f33631
1 changed files with 5 additions and 4 deletions
|
@ -217,10 +217,11 @@ If (!$version) {
|
|||
#===============================================================================
|
||||
# Download minion setup file
|
||||
#===============================================================================
|
||||
Write-Output "Downloading Salt minion installer Salt-Minion-$version-$arch-Setup.exe"
|
||||
$saltExe = "Salt-Minion-$version-$arch-Setup.exe"
|
||||
Write-Output "Downloading Salt minion installer $saltExe"
|
||||
$webclient = New-Object System.Net.WebClient
|
||||
$url = "$repourl/Salt-Minion-$version-$arch-Setup.exe"
|
||||
$file = "C:\tmp\salt.exe"
|
||||
$url = "$repourl/$saltExe"
|
||||
$file = "C:\tmp\$saltExe"
|
||||
$webclient.DownloadFile($url, $file)
|
||||
|
||||
#===============================================================================
|
||||
|
@ -240,7 +241,7 @@ If($runservice -eq $false) {$parameters = "$parameters /start-service=0"}
|
|||
#===============================================================================
|
||||
#Wait for process to exit before continuing.
|
||||
Write-Output "Installing Salt minion"
|
||||
Start-Process C:\tmp\salt.exe -ArgumentList "/S $parameters" -Wait -NoNewWindow -PassThru | Out-Null
|
||||
Start-Process C:\tmp\$saltExe -ArgumentList "/S $parameters" -Wait -NoNewWindow -PassThru | Out-Null
|
||||
|
||||
#===============================================================================
|
||||
# Configure the minion service
|
||||
|
|
Loading…
Add table
Reference in a new issue