diff options
author | Maxim Devaev <[email protected]> | 2022-06-25 20:54:26 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-06-25 20:54:26 +0300 |
commit | 362b9322de26c62bc050867dfc7aec3c97cf1d0d (patch) | |
tree | eb64b4635a65cdc6d124a67e36bfe5851b9de76e /scripts/kvmd-certbot | |
parent | 60a7919b7889ef2f5255f07fe419540294a7f7a4 (diff) |
remove old certbot logs, csr and keys
Diffstat (limited to 'scripts/kvmd-certbot')
-rwxr-xr-x | scripts/kvmd-certbot | 1 |
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' |