--- app/services/foreman/provision/ssh.rb 2016-03-10 07:19:00.295426000 +0100 +++ app/services/foreman/provision/ssh.rb 2016-03-10 07:19:20.884779000 +0100 @@ -51,7 +51,7 @@ end def command - "#{command_prefix} bash -c 'chmod 0701 #{remote_script} && #{command_prefix} #{remote_script}' | tee #{remote_script}.log" + "#{command_prefix} sh -c 'chmod 0701 #{remote_script} && #{command_prefix} #{remote_script}' | tee #{remote_script}.log" end def defaults