fix(lego): Provide post renewal script

This commit is contained in:
Lars Kaiser 2022-06-20 15:37:30 +02:00
parent ad8e17e45e
commit 0c0326d292
No known key found for this signature in database
GPG key ID: BB97304A16BC5DCF

View file

@ -17,6 +17,9 @@ ExecStartPre=+-chmod {{ lego_certificate_store_mode }} {{ lego_certificate_store
ExecStart={{ lego_command_systemd }}
ExecStartPost=+-/bin/sh -c 'chown {{ lego_certificate_store_user }}:{{ lego_certificate_store_group }} {{ lego_certificate_store }}/*'
ExecStartPost=+-/bin/sh -c 'chmod 0640 {{ lego_certificate_store }}/*'
{% if lego_post_renewal_script is defined %}
ExecStartPost=+-{{ lego_post_renewal_script }}
{% endif %}
[Install]
WantedBy=multi-user.target