fix: certbot create path

This commit is contained in:
2026-04-13 00:57:20 +02:00
parent 31774c8b2c
commit 42bac2327a
+3
View File
@@ -158,6 +158,9 @@ class CertManager:
)
self.logger.info("Created certbot certificate for %s", host)
cert_path = self.certbot_conf / "live" / host
dest_cert_path = self.self_signed_path / host
if dest_cert_path.exists:
shutil.rmtree(dest_cert_path)
cert_path.copy_into(self.self_signed_path, follow_symlinks=False)
self.logger.debug("Copied certbot certificate to self certificates")
except subprocess.CalledProcessError as e: