magenta: restart dovecot after updating the certs
This commit is contained in:
parent
e3e80c747b
commit
746cbc7778
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ let
|
|||
mkdir -p $(dirname "${cfg.certificateFile}") $(dirname "${cfg.keyFile}")
|
||||
${pkgs.jq}/bin/jq -r '.le.Certificates[] | select(.domain.main=="${cfg.fqdn}") | .certificate' /var/lib/traefik/acme.json | base64 -d > ${cfg.certificateFile}
|
||||
${pkgs.jq}/bin/jq -r '.le.Certificates[] | select(.domain.main=="${cfg.fqdn}") | .key' /var/lib/traefik/acme.json | base64 -d > ${cfg.keyFile}
|
||||
systemctl restart dovecot2.service
|
||||
'';
|
||||
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue