mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
remove old certbot logs, csr and keys
This commit is contained in:
parent
60a7919b78
commit
362b9322de
@ -114,6 +114,7 @@ case "$1" in
|
|||||||
chmod 755 '$new/config/'{archive,live}
|
chmod 755 '$new/config/'{archive,live}
|
||||||
chmod 640 '$new'/config/archive/*/privkey*.pem
|
chmod 640 '$new'/config/archive/*/privkey*.pem
|
||||||
sed -s -i -e 's| = $tmp/| = $cur/|g' '$new/config/renewal/'*
|
sed -s -i -e 's| = $tmp/| = $cur/|g' '$new/config/renewal/'*
|
||||||
|
rm -f '$new/logs/'*.log.* '$new/config/'{csr,keys}/*.pem
|
||||||
sync
|
sync
|
||||||
kvmd-helper-swapfiles '$new' '$cur'
|
kvmd-helper-swapfiles '$new' '$cur'
|
||||||
rm -rf '$new'
|
rm -rf '$new'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user