Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / etc / sv / dovecot / remote.sh
1 "$tool"/remote/site-x509-key-decrypt imap."$vm_domainname" |
2 "$tool"/remote/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 '