From ddf5299204664fd8bbd5fdf47018221c8541c197 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 31 Jan 2016 17:01:53 +0000 Subject: [PATCH] Append chain if exists --- modules/ssl/templates/chained.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ssl/templates/chained.erb b/modules/ssl/templates/chained.erb index dc5fed079..99572b775 100644 --- a/modules/ssl/templates/chained.erb +++ b/modules/ssl/templates/chained.erb @@ -5,7 +5,7 @@ out = File.read(fn) chain = "/etc/puppet/modules/ssl/files/chains/#{name}.crt" - File.exist?(chain) ? File.read(chain) : '' + out += File.exist?(chain) ? File.read(chain) : '' else fn = "/etc/puppet/modules/ssl/files/from-letsencrypt/#{name}.crt-chained" out = File.read(fn) -- 2.20.1