diff --git a/hooks/pre/20-certs_update.rb b/hooks/pre/20-certs_update.rb index 1d6e15d0..0d017d50 100644 --- a/hooks/pre/20-certs_update.rb +++ b/hooks/pre/20-certs_update.rb @@ -6,6 +6,8 @@ def mark_for_update(cert_name, hostname = nil) path = File.join(*[SSL_BUILD_DIR, hostname, cert_name].compact) + return unless File.exist?(File.dirname(path)) + if app_value(:noop) puts "Marking certificate #{path} for update (noop)" else