Ajout : roundcube.
[lhc/ateliers.git] / etc / sv / dovecot / remote.sh
1 for domain in \
2 "$local_domainname" \
3 cyclocoop.org
4 do
5 "$tool"/remote/site-x509-key-decrypt imap."$domain" |
6 "$tool"/remote/ssh root@"$local_fqdn" ' \
7 sudo install -d -m 770 -o root -g root \
8 /etc/dovecot/'"$domain"'/ \
9 /etc/dovecot/'"$domain"'/imap \
10 /etc/dovecot/'"$domain"'/imap/x509 ; \
11 sudo install -m 644 -o root -g root /dev/stdin \
12 /etc/dovecot/'"$domain"'/imap/x509/.gitignore <<-EOF
13 key.pem
14 EOF
15 sudo install -m 400 -o root -g root \
16 /dev/stdin \
17 /etc/dovecot/'"$domain"'/imap/x509/key.pem
18 '
19 done