Skip to content

Commit

Permalink
Remove old pem and ocsp files
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdriel committed Feb 11, 2021
1 parent 0fefce8 commit f18018b
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 @@ -31,6 +31,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 @@ -25,4 +25,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 f18018b

Please sign in to comment.