X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fpostfix%2Fremote.sh;h=0b610c0a1c1e557991a5b791964e1e57910b45ac;hp=e6a6f5ba1dfef9870d855cf56188fea3695b677f;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=eefc410c23df14d9e47bfc1eedcfb500d557c5a8 diff --git a/etc/sv/postfix/remote.sh b/etc/sv/postfix/remote.sh index e6a6f5b..0b610c0 100644 --- a/etc/sv/postfix/remote.sh +++ b/etc/sv/postfix/remote.sh @@ -1,18 +1,19 @@ -rule _x509_site_key_decrypt smtpd."$vm_domainname" | -rule ssh -l root ' \ +"$tool"/remote/site-x509-key-decrypt \ + smtpd."$local_domainname" | +"$tool"/remote/ssh -l root ' \ sudo install -d -m 770 -o root -g root \ - /etc/postfix/'"$vm_domainname"'/ \ - /etc/postfix/'"$vm_domainname"'/smtpd \ - /etc/postfix/'"$vm_domainname"'/smtpd/x509; \ + /etc/postfix/'"$local_domainname"'/ \ + /etc/postfix/'"$local_domainname"'/smtpd \ + /etc/postfix/'"$local_domainname"'/smtpd/x509; \ sudo install -m 644 -o root -g root /dev/stdin \ - /etc/postfix/'"$vm_domainname"'/smtp/x509/.gitignore <<-EOF + /etc/postfix/'"$local_domainname"'/smtp/x509/.gitignore <<-EOF key.pem EOF sudo install -m 644 -o root -g root /dev/stdin \ - /etc/postfix/'"$vm_domainname"'/smtpd/x509/.gitignore <<-EOF + /etc/postfix/'"$local_domainname"'/smtpd/x509/.gitignore <<-EOF key.pem EOF install -m 400 -o root -g root \ /dev/stdin \ - /etc/postfix/'"'$vm_domainname'"'/smtpd/x509/key.pem + /etc/postfix/'"'$local_domainname'"'/smtpd/x509/key.pem '