X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fdovecot%2Fremote.sh;h=475b4fb48374c5fb41be5eca17405d7c5d68f38e;hb=3f60349d0c8c61c3d45b48f040c1da3e231be6ef;hp=41a78919b1e7832c8b00c3d154567924a93efcef;hpb=b75d4503ef9c919231c0c02daf5a1ed1e57c73af;p=lhc%2Fateliers.git diff --git a/etc/sv/dovecot/remote.sh b/etc/sv/dovecot/remote.sh index 41a7891..475b4fb 100644 --- a/etc/sv/dovecot/remote.sh +++ b/etc/sv/dovecot/remote.sh @@ -1,19 +1,28 @@ for domain in \ "$local_domainname" \ - cyclocoop.org + chatperche.org \ + cyclocoop.org \ + lesjantesdunord.org \ + ptitvelo.net \ + veli-velo.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 - ' + for protocol in imap pop + do + "$tool"/remote/site-x509-key-decrypt "$protocol"."$domain" | + "$tool"/remote/ssh root@"$local_fqdn" ' \ + sudo install -d -m 770 -o root -g php_roundcube \ + /etc/dovecot/dovecot.'"$domain"'/ + sudo install -d -m 770 -o root -g root \ + /etc/dovecot/dovecot.'"$domain"'/'"$protocol"' \ + /etc/dovecot/dovecot.'"$domain"'/'"$protocol"'/x509 ; \ + sudo install -m 644 -o root -g root /dev/stdin \ + /etc/dovecot/dovecot.'"$domain"'/'"$protocol"'/x509/.gitignore <<-EOF + key.pem + EOF + sudo install -m 400 -o root -g root \ + /dev/stdin \ + /etc/dovecot/dovecot.'"$domain"'/'"$protocol"'/x509/key.pem + ' + done done