Skip to content

Commit

Permalink
Merge pull request #125 from mvdriel/remove-old-pem-ocsp-files
Browse files Browse the repository at this point in the history
Remove old pem and ocsp files
  • Loading branch information
tersmitten authored Feb 12, 2021
2 parents 4521b5d + f18018b commit 92648e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/usr/local/bin/haproxy-letsencrypt-ocsp-deploy.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ for path in $(ls -1d {{ haproxy_letsencrypt_ssl_src_path }}/*/); do
rm -f "{{ haproxy_global_crt_base }}/${removePrefix}-${cert}.pem.ocsp";
done

find "{{ haproxy_global_crt_base }}" -mindepth 1 -name "*.ocsp" -mtime +0 -delete;

{% if ansible_service_mgr == 'systemd' %}
systemctl reload haproxy;
{% else %}
Expand Down
2 changes: 2 additions & 0 deletions templates/usr/local/bin/haproxy-letsencrypt-ssl-deploy.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ for path in $(ls -1d {{ haproxy_letsencrypt_ssl_src_path }}/*/); do
rm -f "{{ haproxy_global_crt_base }}/${removePrefix}-${cert}.pem";
done

find "{{ haproxy_global_crt_base }}" -mindepth 1 -name "*.pem" -mtime +0 -delete;

{{ haproxy_letsencrypt_ocsp_deploy }};

0 comments on commit 92648e1

Please sign in to comment.