Mercurial > code > home > repos > infra
changeset 41:768e655e487b
some mail fix
author | drewp@bigasterisk.com |
---|---|
date | Mon, 14 Feb 2022 18:20:25 -0800 |
parents | 193cd3b051c6 |
children | 057d0816afcd |
files | mail.py |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mail.py Mon Jan 17 12:12:02 2022 -0800 +++ b/mail.py Mon Feb 14 18:20:25 2022 -0800 @@ -18,6 +18,13 @@ # something to run ~drewp/mbsync/go at startup - # maybe freshen the mbsync client cert when we're running this deploy, too + server.shell(commands=[ + "cd /home/drewp/mbsync; /usr/bin/mbsync-get-cert 10.5.0.1 > servercert", + ]) # other machines, route mail to bang or prime for delivery + +if host.name == 'bang': + server.shell(commands=[ + "cd /my/serv/dovecot; invoke certs", + ])