fix: remove certbot cert copy
This commit is contained in:
@@ -157,12 +157,6 @@ class CertManager:
|
|||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
)
|
)
|
||||||
self.logger.info("Created certbot certificate for %s", host)
|
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:
|
except subprocess.CalledProcessError as e:
|
||||||
self.logger.exception(
|
self.logger.exception(
|
||||||
"Could not create certbot certificate for %s\n%s",
|
"Could not create certbot certificate for %s\n%s",
|
||||||
|
|||||||
Reference in New Issue
Block a user