X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fdovecot%2Fremote.sh;h=41a78919b1e7832c8b00c3d154567924a93efcef;hb=b75d4503ef9c919231c0c02daf5a1ed1e57c73af;hp=d28f0f61335ad66fd7e9b641e72ad75fdd83a078;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d;p=lhc%2Fateliers.git diff --git a/etc/sv/dovecot/remote.sh b/etc/sv/dovecot/remote.sh index d28f0f6..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."$vm_domainname" | -"$tool"/remote/ssh -l root ' \ - sudo install -d -m 770 -o root -g root \ - /etc/dovecot/'"$vm_domainname"'/ \ - /etc/dovecot/'"$vm_domainname"'/imap \ - /etc/dovecot/'"$vm_domainname"'/imap/x509 ; \ - sudo install -m 644 -o root -g root /dev/stdin \ - /etc/dovecot/'"$vm_domainname"'/imap/x509/.gitignore <<-EOF - key.pem - EOF - sudo install -m 400 -o root -g root \ - /dev/stdin \ - /etc/dovecot/"$vm_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