diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-06-19 05:41:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-06-19 05:41:15 +0000 |
commit | 043d93b4807b7e0ab9f3dcdafd7d3e69a1b3368e (patch) | |
tree | b22d748613a65ba726d0472a3f73227e2c20df23 | |
parent | Updating chain coments in deploy_cert.extra dehydrated hook. (diff) | |
download | service-tools-043d93b4807b7e0ab9f3dcdafd7d3e69a1b3368e.tar.xz service-tools-043d93b4807b7e0ab9f3dcdafd7d3e69a1b3368e.zip |
Stripping empty lines from partial files when using short chain in deploy_cert.extra dehydrated hook.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-x | dehydrated/share/hooks/deploy_cert.extra | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dehydrated/share/hooks/deploy_cert.extra b/dehydrated/share/hooks/deploy_cert.extra index 9e7b9b2..3f6541a 100755 --- a/dehydrated/share/hooks/deploy_cert.extra +++ b/dehydrated/share/hooks/deploy_cert.extra @@ -55,7 +55,7 @@ case "${CHAIN}" in short) # intermediate (R3) - cp "${DIRECTORY}/chain-${TIMESTAMP}.pem" "${DIRECTORY}/intermediate-${TIMESTAMP}.pem" + grep -Ev '^$' "${DIRECTORY}/chain-${TIMESTAMP}.pem" > "${DIRECTORY}/intermediate-${TIMESTAMP}.pem" ln -sf "${DIRECTORY}/intermediate-${TIMESTAMP}.pem" "${DIRECTORY}/intermediate.pem" # root (ISRG Root X1) |