Skip to content

Commit

Permalink
Adds full path to chef-automate executable in guard condition
Browse files Browse the repository at this point in the history
Signed-off-by: Graham Davison <[email protected]>
  • Loading branch information
gdavison committed Jun 20, 2020
1 parent 58c8b6f commit 358852e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/automatev2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
execute "/usr/local/bin/chef-automate deploy #{Chef::Config[:file_cache_path]}/config.toml#{' --accept-terms-and-mlsa' if new_resource.accept_license}" do
cwd Chef::Config[:file_cache_path]
only_if { FileTest.file?("#{Chef::Config[:file_cache_path]}/config.toml") }
not_if 'chef-automate service-versions'
not_if '/usr/local/bin/chef-automate service-versions'
end

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

0 comments on commit 358852e

Please sign in to comment.