summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-03-07 18:06:55 +0100
committerErich Eckner <git@eckner.net>2024-03-07 18:06:55 +0100
commit18dc785aa1f5b4feac81c480c89b3fcf8a5c4048 (patch)
tree9c3f6f086ddf7689b339c9e3e38848fb2d927a5f
parentd73e62ddb055d334198a5fec13e23c4335d42fb9 (diff)
downloadsimple-pki-18dc785aa1f5b4feac81c480c89b3fcf8a5c4048.tar.xz
sign-ca: do not remove old certificates blindly
-rwxr-xr-xsign-ca.in4
1 files changed, 0 insertions, 4 deletions
diff --git a/sign-ca.in b/sign-ca.in
index 7a66437..ab93130 100755
--- a/sign-ca.in
+++ b/sign-ca.in
@@ -115,11 +115,7 @@ rsync --ignore-missing-args \
| ssh "${remote_host}" '
cd "'"${remote_dir}"'"
while read -r time sum file; do
- rm -f ????-??-??T??\:??\:??".${file}"
mv "${file}" "${time}.${file}"
- sed -i '"'"'
- / [^.]\+\.'"'"'"${file//./\.}"'"'"'$/d
- '"'"' sha512sums
printf '"'"'%s %s\n'"'"' "${sum}" "${time}.${file}" \
>> sha512sums
done