From 380d13567f4ce5269670225f8e653e9e32499b8d Mon Sep 17 00:00:00 2001
From: Romain Maliach-Auguste <romain.maliach-auguste@etu.utc.fr>
Date: Sat, 5 Jan 2019 13:02:44 +0100
Subject: [PATCH] fix update-certs-pica-mail.sh (erreur de syntaxe)

---
 pica-mail-copy-certs/update-certs-pica-mail.sh | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/pica-mail-copy-certs/update-certs-pica-mail.sh b/pica-mail-copy-certs/update-certs-pica-mail.sh
index d0f172f6..2e51094a 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
-- 
GitLab