sce/roles/podman_certbot_root_transfer/templates/extract-certificate-files.j2
Ivo C.S. Wingelaar 99053b7f3e
Add transfer role from the Certbot container
This role will install logic to transfer the (renewed) certificates
from the Certbot container to a directory easily accessible by a
distribution-installed nginx.
2024-10-12 21:42:33 +02:00

8 lines
252 B
Django/Jinja

#!/bin/bash
# {{ ansible_managed }}
MOUNT=$(podman volume inspect certbot-etc --format "{{ '{{' }} .Mountpoint {{ '}}' }}")
mkdir -p certbot-tx
cp -rL $MOUNT/live/* certbot-tx
sudo /usr/local/bin/move-certificate-files-to-root $(realpath certbot-tx)