~sirn/ansible-openbsd

ref: 6c069918f8a22fe6814766f7f520d25085f6448c ansible-openbsd/openbsd-dehydrated/templates/periodic.sh.j2 -rw-r--r-- 532 bytes View raw
6c069918Kridsada Thanabulpong Use periodic.sh for first dehydrated run 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

{% if dehydrated_lexicon_config %}
doas -n -u _dehydrated \
  env \
    PATH="/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" \
{% for key, value in dehydrated_lexicon_config.items() %}
    {{key}}="{{value}}" \
{% endfor %}
{% endif %}
  /usr/local/bin/dehydrated \
    --hook /etc/dehydrated/hook.sh \
    --challenge dns-01 \
    --cron
{% if dehydrated_postcmds %}
{% for postcmd in dehydrated_postcmds %}

( # postcmd-{{loop.index}}
  {{postcmd|trim|indent(2)}}
) || exit 1
{% endfor %}
{% endif %}