mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-09-13 10:00
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
SFTPGO_RELOAD=0
|
||||
{% for service in ['ftpd','webdavd','httpd','telemetry'] %}
|
||||
{% if sftpgo_conf[service].certificate_file is defined and sftpgo_conf[service].certificate_file is search('^letsencrypt:') %}
|
||||
{% set certificate_name = sftpgo_conf[service].certificate_file | regex_replace('^letsencrypt:', '') %}
|
||||
{% if sftpgo_conf[service].bindings.certificate_file is defined and sftpgo_conf[service].bindings.certificate_file is search('^letsencrypt:') %}
|
||||
{% set certificate_name = sftpgo_conf[service].bindings.certificate_file | regex_replace('^letsencrypt:', '') %}
|
||||
if [ $1 == "{{ certificate_name }}" ]; then
|
||||
SFTPGO_RELOAD=1
|
||||
cp /var/lib/dehydrated/certificates/certs/{{ certificate_name }}/fullchain.pem {{ sftpgo_root_dir }}/etc/ssl/{{ service }}.crt
|
||||
|
Reference in New Issue
Block a user