From 3d58520b69cb91904b5602cba76e6a186e939aa5 Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Fri, 19 Jul 2024 11:48:18 +0200 Subject: [PATCH] add comment Signed-off-by: Robert Waffen --- puppetserver/docker-entrypoint.d/99-log-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppetserver/docker-entrypoint.d/99-log-config.sh b/puppetserver/docker-entrypoint.d/99-log-config.sh index ee7d1c9f..49bc9695 100755 --- a/puppetserver/docker-entrypoint.d/99-log-config.sh +++ b/puppetserver/docker-entrypoint.d/99-log-config.sh @@ -12,7 +12,7 @@ if [ -n "${CERTNAME}" ]; then echo "* CERTNAME: '${CERTNAME}'" certname=${CERTNAME}.pem else - echo "* CERTNAME: unset" + echo "* CERTNAME: unset, try to use the oldest certificate in the certs directory, because this might be the one that was used initially." certname=$(cd "${SSLDIR}/certs" && find * -type f -name '*.pem' ! -name ca.pem -print0 | xargs -0 ls -1tr | head -n 1) if [ -z "${certname}" ]; then echo "WARNING: No certificates found in ${SSLDIR}/certs! Please set CERTNAME!"