]> git.openstreetmap.org Git - chef.git/blob - cookbooks/letsencrypt/templates/default/check-certificates.erb
Use virtual hosts to redirect osm.org for consistency
[chef.git] / cookbooks / letsencrypt / templates / default / check-certificates.erb
1 #!/bin/sh
2
3 <% @certificates.values.sort_by { |c| c[:domains].first }.each do |certificate| -%>
4 <% certificate[:nodes].sort_by { |h| h[:name] }.each do |host| -%>
5 /srv/acme.openstreetmap.org/bin/check-certificate <%= host[:name] %> <%= host[:address] %> <%= certificate[:domains].join(" ") %>
6 <% end -%>
7 <% end -%>