summaryrefslogtreecommitdiffstats
path: root/dehydrated/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-08 15:06:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-08 15:06:13 +0000
commita54c362dff0e8c1993bb19a992544bcfa9cb44e2 (patch)
tree41e0d6053480510a4f1eafbc0d8256ad929b5a45 /dehydrated/share
parentAdding upstream version 20221101. (diff)
downloadopen-infrastructure-service-tools-a54c362dff0e8c1993bb19a992544bcfa9cb44e2.tar.xz
open-infrastructure-service-tools-a54c362dff0e8c1993bb19a992544bcfa9cb44e2.zip
Adding upstream version 20221108.upstream/20221108
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdehydrated/share/hooks/deploy_cert.extra4
1 files changed, 2 insertions, 2 deletions
diff --git a/dehydrated/share/hooks/deploy_cert.extra b/dehydrated/share/hooks/deploy_cert.extra
index b33f562..47a8391 100755
--- a/dehydrated/share/hooks/deploy_cert.extra
+++ b/dehydrated/share/hooks/deploy_cert.extra
@@ -40,11 +40,11 @@ echo " done."
for EXTRA in fullchain-privkey privkey-fullchain
do
- echo -n " + creating ${EXTRA1}-${EXTRA2}:"
-
EXTRA1="$(echo ${EXTRA} | awk -F- '{ print $1 }')"
EXTRA2="$(echo ${EXTRA} | awk -F- '{ print $2 }')"
+ echo -n " + creating ${EXTRA1}-${EXTRA2}:"
+
cat "${DIRECTORY}/${EXTRA1}-${TIMESTAMP}.pem" "${DIRECTORY}/${EXTRA2}-${TIMESTAMP}.pem" > "${DIRECTORY}/${EXTRA1}-${EXTRA2}-${TIMESTAMP}.pem"
ln -sf "${EXTRA1}-${EXTRA2}-${TIMESTAMP}.pem" "${DIRECTORY}/cert.${EXTRA1}-${EXTRA2}.pem"