Files
test/templates/Fedora/37/usr/lib/systemd/system/postfix-copytls.service
T
2022-12-06 21:56:26 -06:00

13 lines
325 B
Desktop File

[Unit]
Description=Copy TLS Certificates for Postfix
[Service]
Type=oneshot
ExecStartPre=mkdir -p /etc/postfix/certificates
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ postfix_vhost }}/*.pem /etc/postfix/certificates/'
ExecStartPost=chown -R root:root /etc/postfix/certificates
[Install]
WantedBy=postfix.service