X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fdovecot%2Fremote.sh;h=3255de7e17d8fcf0d1c87a405c5a0fc0d6d5cde9;hb=84c3179904883f4a65c53a731e27531c770bf1b1;hp=d28f0f61335ad66fd7e9b641e72ad75fdd83a078;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d;p=lhc%2Fateliers.git diff --git a/etc/sv/dovecot/remote.sh b/etc/sv/dovecot/remote.sh index d28f0f6..3255de7 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/ssh -l root ' \ +"$tool"/remote/site-x509-key-decrypt imap."$local_domainname" | +"$tool"/remote/ssh root@"$local_fqdn" ' \ 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 '