From fa34e9f9a1f9582ed92d02d23e305aaf27b5f27f Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 24 Jun 2013 22:26:06 -0400 Subject: [PATCH] use which to find crunch-job instead of hoping sudo preserves PATH --- services/api/script/crunch-dispatch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/script/crunch-dispatch.rb b/services/api/script/crunch-dispatch.rb index 24595ac6af..35e03edc5f 100755 --- a/services/api/script/crunch-dispatch.rb +++ b/services/api/script/crunch-dispatch.rb @@ -81,7 +81,7 @@ class Dispatcher api_client_id: 0) job_auth.save - cmd_args << ENV['CRUNCH_JOB_BIN'] || 'crunch-job' + cmd_args << (ENV['CRUNCH_JOB_BIN'] || `which crunch-job`.strip) cmd_args << '--job-api-token' cmd_args << job_auth.api_token cmd_args << '--job' -- 2.30.2