Commit 4d6a0bf2 authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

common: symbiosis-ssl exits 1 if any errors occur

parent dffa6f1a
......@@ -108,6 +108,7 @@ end
now = Time.now
threshold = 14
exit_code = 0
domains.each do |domain|
puts "* Examining certificates for #{domain.name}" if $VERBOSE
......@@ -151,11 +152,11 @@ domains.each do |domain|
rescue StandardError => err
puts "\t!! Failed: #{err.to_s.gsub($/,'')}" if $VERBOSE
puts err.backtrace.join("\n") if $DEBUG
exit_code = 1
end
end
#
# Stage 2: Roll over
#
......@@ -163,4 +164,5 @@ domains.each do |domain|
end
exit exit_code
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment