Agent's log removed when config updated.
Now agent's log has a lot of connecion errors because at deployment phase there is no RabbitMQ server available. This errors may be safely removed. Change-Id: I65f337cba5c02cc49a8dee402ba8405e6aa9914b
This commit is contained in:
parent
f49dbfe907
commit
07ecd21a95
@ -2,6 +2,7 @@
|
||||
|
||||
$WindowsAgentConfigBase64 = '%WINDOWS_AGENT_CONFIG_BASE64%'
|
||||
$WindowsAgentConfigFile = "C:\Murano\Agent\WindowsAgent.exe.config"
|
||||
$WindowsAgentLogFile = "C:\Murano\Agent\log.txt"
|
||||
|
||||
$NewComputerName = '%INTERNAL_HOSTNAME%'
|
||||
$MuranoFileShare = '%MURANO_SERVER_ADDRESS%\share'
|
||||
@ -14,6 +15,7 @@ Write-Log "Updating Murano Windows Agent."
|
||||
Stop-Service "Murano Agent"
|
||||
Backup-File $WindowsAgentConfigFile
|
||||
Remove-Item $WindowsAgentConfigFile -Force
|
||||
Remove-Item $WindowsAgentLogFile -Force
|
||||
ConvertFrom-Base64String -Base64String $WindowsAgentConfigBase64 -Path $WindowsAgentConfigFile
|
||||
Exec sc.exe 'config','"Murano Agent"','start=','delayed-auto'
|
||||
Write-Log "Service has been updated."
|
||||
|
Loading…
x
Reference in New Issue
Block a user