Commit af4d8b99 authored by Gonzalo Peci's avatar Gonzalo Peci

Add quickfix to restart provisioner as existing one was not working.

For more information read https://github.com/mitchellh/packer/pull/2243
parent ab6a330d
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
"github.com/mitchellh/packer/template/interpolate" "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 DefaultRestartCheckCommand = winrm.Powershell(`echo "${env:COMPUTERNAME} restarted."`)
var retryableSleep = 5 * time.Second var retryableSleep = 5 * time.Second
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment