Skip to content

Commit 569e35f

Browse files
committed
Adds full path to chef-automate executable in guard condition
Signed-off-by: Graham Davison <[email protected]>
1 parent 015828c commit 569e35f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/automatev2.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
execute "/usr/local/bin/chef-automate deploy #{Chef::Config[:file_cache_path]}/config.toml#{' --accept-terms-and-mlsa' if new_resource.accept_license}" do
4646
cwd Chef::Config[:file_cache_path]
4747
only_if { FileTest.file?("#{Chef::Config[:file_cache_path]}/config.toml") }
48-
not_if 'chef-automate service-versions'
48+
not_if '/usr/local/bin/chef-automate service-versions'
4949
end
5050

5151
file "#{Chef::Config[:file_cache_path]}/custom_config.toml" do

0 commit comments

Comments
 (0)