mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Change temporary directory for exectutable to C:\Windows\Temp
Yep, $env:temp is even better but lets change things step by step. This makes script inconsistent as other parts still use c:\tmp for storing configuraiton files. I don't want to change them as it is *very* likely users upload configuraiton files there already using external scripts.
This commit is contained in:
parent
c4cfacb4e3
commit
8c0bec4883
1 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ $saltExe = "Salt-Minion-$version-$arch-Setup.exe"
|
||||||
Write-Output "Downloading Salt minion installer $saltExe"
|
Write-Output "Downloading Salt minion installer $saltExe"
|
||||||
$webclient = New-Object System.Net.WebClient
|
$webclient = New-Object System.Net.WebClient
|
||||||
$url = "$repourl/$saltExe"
|
$url = "$repourl/$saltExe"
|
||||||
$file = "C:\tmp\$saltExe"
|
$file = "C:\Windows\Temp\$saltExe"
|
||||||
$webclient.DownloadFile($url, $file)
|
$webclient.DownloadFile($url, $file)
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
@ -241,7 +241,7 @@ If($runservice -eq $false) {$parameters = "$parameters /start-service=0"}
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
#Wait for process to exit before continuing.
|
#Wait for process to exit before continuing.
|
||||||
Write-Output "Installing Salt minion"
|
Write-Output "Installing Salt minion"
|
||||||
Start-Process C:\tmp\$saltExe -ArgumentList "/S $parameters" -Wait -NoNewWindow -PassThru | Out-Null
|
Start-Process C:\Windows\Temp\$saltExe -ArgumentList "/S $parameters" -Wait -NoNewWindow -PassThru | Out-Null
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# Configure the minion service
|
# Configure the minion service
|
||||||
|
|
Loading…
Add table
Reference in a new issue