diff --git a/pica-mail-copy-certs/update-certs-pica-mail.sh b/pica-mail-copy-certs/update-certs-pica-mail.sh index d0f172f6ab8e72435b58cf067b7b85f23e48c888..2e51094a81fb2b11f9ae8e5eb03272e55e31bf82 100755 --- a/pica-mail-copy-certs/update-certs-pica-mail.sh +++ b/pica-mail-copy-certs/update-certs-pica-mail.sh @@ -1,6 +1,4 @@ #!/bin/sh echo pica-copying certs for ${DOMAIN} from /DATA/docker/traefik/certs/acme.json to /DATA/docker/mail/ssl -cat /DATA/docker/traefik/certs/acme.json | jq -r --arg domain ${DOMAIN} '.DomainsCertificate[][] | if .Domains.Main == $domain then . else empty end | .Certificate.Certificate' - | base64 -d > /DATA/docker/mail/ssl/cert -cat /DATA/docker/traefik/certs/acme.json | jq -r --arg domain ${DOMAIN} '.DomainsCertificate[][] | if .Domains.Main == $domain then . else empty end | .Certificate.PrivateKey' - | base64 -d > /DATA/docker/mail/ssl/key +cat /DATA/docker/traefik/certs/acme.json | jq -r --arg domain ${DOMAIN} '.DomainsCertificate[][] | if .Domains.Main == $domain then . else empty end | .Certificate.Certificate' | base64 -d > /DATA/docker/mail/ssl/cert +cat /DATA/docker/traefik/certs/acme.json | jq -r --arg domain ${DOMAIN} '.DomainsCertificate[][] | if .Domains.Main == $domain then . else empty end | .Certificate.PrivateKey' | base64 -d > /DATA/docker/mail/ssl/key