Cleanup unused csr and keys folders

This commit is contained in:
Eric Nemchik committed 2023-03-07 19:02:03 -06:00
1 parent b7fba5e404
commit 4899670c70
3 files changed
+6

No files matched your search

@@ -140,6 +140,10 @@ else
ln -s ../etc/letsencrypt/live/"${URL}" /config/keys/letsencrypt
fi
# cleanup unused csr and keys folders
rm -rf /etc/letsencrypt/csr
rm -rf /etc/letsencrypt/keys
# checking for changes in cert variables, revoking certs if necessary
if [[ ! "${URL}" = "${ORIGURL}" ]] ||
[[ ! "${SUBDOMAINS}" = "${ORIGSUBDOMAINS}" ]] ||