From: Tom Hughes Date: Sat, 11 Feb 2017 19:42:08 +0000 (+0000) Subject: Force unlinking of certificates X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/2d365e288323ccd05ac440a631185885d6bddc98?hp=1952990836d6687ed4030bb95ca5f9e535eaf61f Force unlinking of certificates --- diff --git a/cookbooks/ssl/resources/certificate.rb b/cookbooks/ssl/resources/certificate.rb index 42957c798..fc94d39de 100644 --- a/cookbooks/ssl/resources/certificate.rb +++ b/cookbooks/ssl/resources/certificate.rb @@ -41,6 +41,7 @@ action :create do content certificate backup false manage_symlink_source false + force_unlink true end file "/etc/ssl/private/#{name}.key" do @@ -50,6 +51,7 @@ action :create do content key backup false manage_symlink_source false + force_unlink true end elsif fallback_certificate link "/etc/ssl/certs/#{name}.pem" do