Mercurial > code > home > repos > infra
diff mail.py @ 253:67fb7b27bfea
maildir file count service
author | drewp@bigasterisk.com |
---|---|
date | Tue, 09 Jan 2024 19:56:01 -0800 |
parents | 44b0da2e6d1f |
children | c44677a25baf |
line wrap: on
line diff
--- a/mail.py Mon Jan 08 18:41:08 2024 -0800 +++ b/mail.py Tue Jan 09 19:56:01 2024 -0800 @@ -35,6 +35,11 @@ "cd /home/drewp/mbsync; /usr/bin/mbsync-get-cert 10.5.0.1 > servercert", ]) + files.put(src='templates/file-count/file_count.py', dest='/opt/file_count.py') + files.template(src='templates/file-count/file-count.service.j2', dest='/etc/systemd/system/maildir-count.service') + systemd.service(service='maildir-count.service', enabled=True, running=True, daemon_reload=True) + + # other machines, route mail to bang or prime for delivery if host.name == 'bang':