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 Dec 7, 2017
1 parent 35f751f commit 8cc81e1
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 8cc81e1

Please sign in to comment.