X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fdovecot%2Fremote.sh;h=41a78919b1e7832c8b00c3d154567924a93efcef;hp=3255de7e17d8fcf0d1c87a405c5a0fc0d6d5cde9;hb=b75d4503ef9c919231c0c02daf5a1ed1e57c73af;hpb=4c57b350e0265cfadb9bbf95cd55ae491ee66820 diff --git a/etc/sv/dovecot/remote.sh b/etc/sv/dovecot/remote.sh index 3255de7..41a7891 100644 --- a/etc/sv/dovecot/remote.sh +++ b/etc/sv/dovecot/remote.sh @@ -1,14 +1,19 @@ -"$tool"/remote/site-x509-key-decrypt imap."$local_domainname" | -"$tool"/remote/ssh root@"$local_fqdn" ' \ - sudo install -d -m 770 -o root -g root \ - /etc/dovecot/'"$local_domainname"'/ \ - /etc/dovecot/'"$local_domainname"'/imap \ - /etc/dovecot/'"$local_domainname"'/imap/x509 ; \ - sudo install -m 644 -o root -g root /dev/stdin \ - /etc/dovecot/'"$local_domainname"'/imap/x509/.gitignore <<-EOF - key.pem - EOF - sudo install -m 400 -o root -g root \ - /dev/stdin \ - /etc/dovecot/'"$local_domainname"'/imap/x509/key.pem - ' +for domain in \ + "$local_domainname" \ + cyclocoop.org + do + "$tool"/remote/site-x509-key-decrypt imap."$domain" | + "$tool"/remote/ssh root@"$local_fqdn" ' \ + sudo install -d -m 770 -o root -g root \ + /etc/dovecot/'"$domain"'/ \ + /etc/dovecot/'"$domain"'/imap \ + /etc/dovecot/'"$domain"'/imap/x509 ; \ + sudo install -m 644 -o root -g root /dev/stdin \ + /etc/dovecot/'"$domain"'/imap/x509/.gitignore <<-EOF + key.pem + EOF + sudo install -m 400 -o root -g root \ + /dev/stdin \ + /etc/dovecot/'"$domain"'/imap/x509/key.pem + ' + done