Skip to content

Commit

Permalink
change webhook exec to execute the command built previously rather th…
Browse files Browse the repository at this point in the history
…an just running mcollective
  • Loading branch information
Keith Ferguson committed Aug 24, 2014
1 parent 6b007c9 commit 1d1890c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/webhook
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Server < Sinatra::Base
command = "/opt/puppet/bin/r10k deploy environment #{branch} >> #{$config['mco_logfile']} 2>&1 &"
end
message = "triggered: #{command}"
Process.detach(fork{ exec "/opt/puppet/bin/mco r10k deploy #{branch} >> #{$config['mco_logfile']} 2>&1 &"})
Process.detach(fork{ exec "#{command}"})
end
$logger.info("message: #{message} branch: #{branch}")
{:status => :success, :message => message.to_s }.to_json
Expand Down

0 comments on commit 1d1890c

Please sign in to comment.