13 lines
234 B
Cheetah
13 lines
234 B
Cheetah
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -eo pipefail
|
||
|
set -xv
|
||
|
|
||
|
{{ if hasKey . "mail" -}}
|
||
|
{{ range .mail.accounts -}}
|
||
|
{{ if hasKey . "certificate" -}}
|
||
|
echo '{{ .certificate }}' >"${HOME}/.cert/email-cert-{{ .name }}.pem"
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|