lib/chef/provisioning/convergence_strategy/install_sh.rb in chef-provisioning-1.4.0 vs lib/chef/provisioning/convergence_strategy/install_sh.rb in chef-provisioning-1.4.1
- old
+ new
@@ -37,13 +37,17 @@
if convergence_options[:bootstrap_proxy]
opts["http_proxy"] = convergence_options[:bootstrap_proxy]
opts["https_proxy"] = convergence_options[:bootstrap_proxy]
end
+ if convergence_options[:install_sh_arguments]
+ opts['install_flags'] = convergence_options[:install_sh_arguments]
+ end
+
install_command = Mixlib::Install.new(chef_version, false, opts).install_command
machine.write_file(action_handler, install_sh_path, install_command, :ensure_dir => true)
machine.set_attributes(action_handler, install_sh_path, :mode => '0755')
- machine.execute(action_handler, "sh -c '#{install_sh_path} #{install_sh_arguments}'")
+ machine.execute(action_handler, "sh -c #{install_sh_path}")
end
def converge(action_handler, machine)
super