mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-25 02:39:40 -04:00
Add quickfix to restart provisioner as existing one was not working.
For more information read https://github.com/mitchellh/packer/pull/2243
This commit is contained in:
parent
ab6a330d86
commit
af4d8b99b4
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/mitchellh/packer/template/interpolate"
|
||||
)
|
||||
|
||||
var DefaultRestartCommand = "shutdown /r /c \"packer restart\" /t 5 && net stop winrm"
|
||||
var DefaultRestartCommand = "powershell \"& {Restart-Computer -force }\""
|
||||
var DefaultRestartCheckCommand = winrm.Powershell(`echo "${env:COMPUTERNAME} restarted."`)
|
||||
var retryableSleep = 5 * time.Second
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue