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.
11 lines
535 B
11 lines
535 B
#!/bin/bash
|
|
|
|
{% if pbs_letsencrypt_cert is defined and pbs_letsencrypt_cert is string %}
|
|
if [ $1 == "{{ pbs_letsencrypt_cert }}" ]; then
|
|
cat /var/lib/dehydrated/certificates/certs/{{ pbs_letsencrypt_cert }}/privkey.pem > /etc/proxmox-backup/proxy.key
|
|
cat /var/lib/dehydrated/certificates/certs/{{ pbs_letsencrypt_cert }}/fullchain.pem > /etc/proxmox-backup/proxy.pem
|
|
chown root:backup /etc/proxmox-backup/proxy.{key,pem}
|
|
chmod 640 /etc/proxmox-backup/proxy.{key,pem}
|
|
/bin/systemctl reload proxmox-backup-proxy
|
|
fi
|
|
{% endif %}
|
|
|