coreos-home-server/service/letsencrypt/container/run-lego
Alex Palaistras f0fd067dca letsencrypt: Copy certs to host-specific directory
This should help make use of host-specific certificates easier, as
otherwise containers will have access to all certificates and private keys.
2024-01-03 19:57:23 +00:00

11 lines
319 B
Bash
Executable File

#!/bin/sh
set -eu
# Create directories and correct permissions where needed.
install --owner letsencrypt --group letsencrypt --mode 0755 -d /var/lib/letsencrypt-certificates
chown -R letsencrypt:letsencrypt /var/lib/letsencrypt
# Run ACME verification with parameters given.
exec gosu letsencrypt /usr/bin/lego "$@"