before: /c/compass-ci/container/scheduler-https# ./start Traceback (most recent call last): ./start:14:in `<main>': CA certificate is missing. Ignore if the HTTPS scheduler is not required (RuntimeError)
after: /c/compass-ci/container/scheduler-https# ./start CA certificate is missing. Ignore if the HTTPS scheduler is not required
Signed-off-by: Liu Yinsi liuyinsi@163.com --- container/scheduler-https/start | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/container/scheduler-https/start b/container/scheduler-https/start index 4ec84a28..5e79d2be 100755 --- a/container/scheduler-https/start +++ b/container/scheduler-https/start @@ -10,8 +10,10 @@ ca_path = '/etc/compass-ci/ca' crt_path = "#{ca_path}/server.crt" key_path = "#{ca_path}/server.key"
-warn_msg = 'CA certificate is missing. Ignore if the HTTPS scheduler is not required' -raise warn_msg unless File.exist?(crt_path) && File.exist?(key_path) +unless File.exist?(crt_path) && File.exist?(key_path) + puts 'CA certificate is missing. Ignore if the HTTPS scheduler is not required' + exit +end
names = Set.new %w[ SCHED_HOST