You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
441 B
12 lines
441 B
5 years ago
|
#!/bin/bash -e
|
||
|
|
||
|
{% if pmg_letsencrypt_cert is defined %}
|
||
|
if [ $1 == "{{ pmg_letsencrypt_cert }}" ]; then
|
||
|
cat /var/lib/dehydrated/certificates/certs/{{ pmg_letsencrypt_cert }}/privkey.pem > /etc/pmg/pmg-tls.pem
|
||
|
cat /var/lib/dehydrated/certificates/certs/{{ pmg_letsencrypt_cert }}/fullchain.pem >> /etc/pmg/pmg-tls.pem
|
||
|
chown root:root /etc/pmg/pmg-tls.pem
|
||
|
chmod 600 /etc/pmg/pmg-tls.pem
|
||
|
/bin/systemctl reload postfix
|
||
|
fi
|
||
|
{% endif %}
|