magenta: restart dovecot after updating the certs

This commit is contained in:
Dmitriy Pleshevskiy 2023-09-07 14:13:07 +03:00
parent e3e80c747b
commit 746cbc7778
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -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