12 lines
234 B
Bash
12 lines
234 B
Bash
#!/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 }}
|