X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fdovecot%2Fremote.sh;h=622e4dda1bab9c02c77d93b1ce9f882602c62788;hp=d28f0f61335ad66fd7e9b641e72ad75fdd83a078;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d diff --git a/etc/sv/dovecot/remote.sh b/etc/sv/dovecot/remote.sh index d28f0f6..622e4dd 100644 --- a/etc/sv/dovecot/remote.sh +++ b/etc/sv/dovecot/remote.sh @@ -1,14 +1,14 @@ -"$tool"/remote/site-x509-key-decrypt imap."$vm_domainname" | +"$tool"/remote/site-x509-key-decrypt imap."$local_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 ; \ + /etc/dovecot/'"$local_domainname"'/ \ + /etc/dovecot/'"$local_domainname"'/imap \ + /etc/dovecot/'"$local_domainname"'/imap/x509 ; \ sudo install -m 644 -o root -g root /dev/stdin \ - /etc/dovecot/'"$vm_domainname"'/imap/x509/.gitignore <<-EOF + /etc/dovecot/'"$local_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 + /etc/dovecot/"$local_domainname"/imap/x509/key.pem '