ansible-role-shinyproxy/templates/sync_docker_certificates.sh.j2

9 lines
392 B
Django/Jinja

#!/bin/bash
/bin/cp -f /var/lib/docker/swarm/certificates/swarm-root-ca.crt {{ shinyproxy_docker_certs_dir }}/ca.pem
/bin/cp -f /var/lib/docker/swarm/certificates/swarm-node.crt {{ shinyproxy_docker_certs_dir }}/cert.pem
/bin/cp -f /var/lib/docker/swarm/certificates/swarm-node.key {{ shinyproxy_docker_certs_dir }}/key.pem
chown shinyproxy {{ shinyproxy_docker_certs_dir }}/key.pem
exit 0