Skip to content

Commit

Permalink
Cosmetic improvement to hook state name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-vant committed Jun 2, 2018
1 parent 669be95 commit 5ac07b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions letsencrypt/client/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ certbot_cron:
{%- for hook in hooks %}
{#- FIXME: Should probably complain if something other than
pre/post/deploy is given, but I'm not sure how. #}
certbot_renewal_{{ hookset }}_hook_{{ loop.index }}:
{%- set basename = hook.split("/") | last %}
certbot_renewal_{{ hookset }}_hook_{{ basename }}:
file.managed:
- name: /etc/letsencrypt/renewal-hooks/{{ hookset }}/{{ hook.split("/") | last }}
- name: /etc/letsencrypt/renewal-hooks/{{ hookset }}/{{ basename }}
- source: {{ hook }}
- template: jinja
- mode: 700
Expand Down

0 comments on commit 5ac07b9

Please sign in to comment.