From f96e3828e60694bf398e166cd66b21fa8265997a Mon Sep 17 00:00:00 2001 From: Matt Wrock Date: Fri, 15 Jan 2016 17:38:45 -0800 Subject: explicitly adding .bat to service executable called by service in case users remove .bat from PATHEXT --- lib/chef/application/windows_service.rb | 2 +- omnibus/resources/chef/msi/source.wxs.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chef/application/windows_service.rb b/lib/chef/application/windows_service.rb index 957123b1e9..a57cf138e4 100644 --- a/lib/chef/application/windows_service.rb +++ b/lib/chef/application/windows_service.rb @@ -196,7 +196,7 @@ class Chef # Starts a new process and waits till the process exits result = shell_out( - "chef-client #{config_params}", + "chef-client.bat #{config_params}", :timeout => Chef::Config[:windows_service][:watchdog_timeout], :logger => Chef::Log, ) diff --git a/omnibus/resources/chef/msi/source.wxs.erb b/omnibus/resources/chef/msi/source.wxs.erb index f9c2b55cde..79f90ac18b 100644 --- a/omnibus/resources/chef/msi/source.wxs.erb +++ b/omnibus/resources/chef/msi/source.wxs.erb @@ -96,7 +96,7 @@ -- cgit v1.2.1