From e561c254b4605c27fc23bdc2bbeb0602e7798d24 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 27 Jun 2023 11:22:33 +0200 Subject: Generalizing extra ocsp symlinks too in dehydrated hooks. Signed-off-by: Daniel Baumann --- dehydrated/share/hooks/deploy_ocsp.extra | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dehydrated/share/hooks') diff --git a/dehydrated/share/hooks/deploy_ocsp.extra b/dehydrated/share/hooks/deploy_ocsp.extra index 35a13f6..92b2247 100755 --- a/dehydrated/share/hooks/deploy_ocsp.extra +++ b/dehydrated/share/hooks/deploy_ocsp.extra @@ -26,12 +26,11 @@ echo " + Creating extra ocsp links..." DIRECTORY="$(dirname "${OCSPFILE}")" OCSP="$(readlink "${OCSPFILE}")" -for EXTRA in fullchain_privkey privkey_fullchain +for EXTRA in fullchain_privkey privkey_fullchain root_intermediate_cert do - EXTRA1="$(echo ${EXTRA} | awk -F_ '{ print $1 }')" - EXTRA2="$(echo ${EXTRA} | awk -F_ '{ print $2 }')" + rm -f "${DIRECTORY}/${EXTRA}-${TIMESTAMP}.pem.ocsp" - ln -sf "${OCSP}" "${DIRECTORY}/${EXTRA1}_${EXTRA2}.pem.ocsp" + ln -sf "${OCSPFILE}" "${DIRECTORY}/${EXTRA}.pem.ocsp" done echo " done." -- cgit v1.2.3