Skip to content

Commit

Permalink
Merge pull request #70 from k-f/master
Browse files Browse the repository at this point in the history
change webhook exec to execute the command built previously
  • Loading branch information
acidprime committed Aug 26, 2014
2 parents 6b007c9 + 1d1890c commit 245ffbf
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 245ffbf

Please sign in to comment.