summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-06-25 20:54:26 +0300
committerMaxim Devaev <[email protected]>2022-06-25 20:54:26 +0300
commit362b9322de26c62bc050867dfc7aec3c97cf1d0d (patch)
treeeb64b4635a65cdc6d124a67e36bfe5851b9de76e
parent60a7919b7889ef2f5255f07fe419540294a7f7a4 (diff)
remove old certbot logs, csr and keys
-rwxr-xr-xscripts/kvmd-certbot1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kvmd-certbot b/scripts/kvmd-certbot
index b6067389..81f4d6ba 100755
--- a/scripts/kvmd-certbot
+++ b/scripts/kvmd-certbot
@@ -114,6 +114,7 @@ case "$1" in
chmod 755 '$new/config/'{archive,live}
chmod 640 '$new'/config/archive/*/privkey*.pem
sed -s -i -e 's| = $tmp/| = $cur/|g' '$new/config/renewal/'*
+ rm -f '$new/logs/'*.log.* '$new/config/'{csr,keys}/*.pem
sync
kvmd-helper-swapfiles '$new' '$cur'
rm -rf '$new'