X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fdovecot%2Fremote.sh;h=3255de7e17d8fcf0d1c87a405c5a0fc0d6d5cde9;hb=691dcd533c958c2067b084e453959cb5e6634175;hp=0de2eaaf27ac3027447b5b68872ea44b62a6739d;hpb=eefc410c23df14d9e47bfc1eedcfb500d557c5a8;p=lhc%2Fateliers.git diff --git a/etc/sv/dovecot/remote.sh b/etc/sv/dovecot/remote.sh index 0de2eaa..3255de7 100644 --- a/etc/sv/dovecot/remote.sh +++ b/etc/sv/dovecot/remote.sh @@ -1,14 +1,14 @@ -rule _x509_site_key_decrypt imap."$vm_domainname" | -rule 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 '