mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Remove unnecessary check for README file in certbot-new.py
This commit is contained in:
parent
2c13d9ed19
commit
701d6f1d37
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ try:
|
|||
if getenv("LETS_ENCRYPT_CLEAR_OLD_CERTS", "no") == "yes":
|
||||
LOGGER.info("Clear old certificates is activated, removing old / no longer used certificates...")
|
||||
for elem in chain(DATA_PATH.glob("archive/*"), DATA_PATH.glob("live/*"), DATA_PATH.glob("renewal/*")):
|
||||
if elem.name.replace(".conf", "") not in generated_domains:
|
||||
if elem.stem not in generated_domains and elem.stem != "README":
|
||||
LOGGER.warning(f"Removing old certificate {elem}")
|
||||
if elem.is_dir():
|
||||
rmtree(elem, ignore_errors=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue