Correction : vm_remote : uniformise rule_runit_configure avec vm_hosted .
[lhc/ateliers.git] / etc / sv / dovecot / remote.sh
1 rule _x509_site_key_decrypt imap."$vm_domainname" |
2 rule ssh -l root ' \
3 sudo install -d -m 770 -o root -g root \
4 /etc/dovecot/'"$vm_domainname"'/ \
5 /etc/dovecot/'"$vm_domainname"'/imap \
6 /etc/dovecot/'"$vm_domainname"'/imap/x509 ; \
7 sudo install -m 644 -o root -g root /dev/stdin \
8 /etc/dovecot/'"$vm_domainname"'/imap/x509/.gitignore <<-EOF
9 key.pem
10 EOF
11 sudo install -m 400 -o root -g root \
12 /dev/stdin \
13 /etc/dovecot/"$vm_domainname"/imap/x509/key.pem
14 '