You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-25 22:12:28 +02:00
Check if a certificate already exists before trying to read it
This commit is contained in:
@@ -28,7 +28,7 @@ def install_certs(domain):
|
||||
else:
|
||||
print("Could not find the proper certificate from traefik")
|
||||
return
|
||||
if os.path.join(cert_path):
|
||||
if os.path.exists(cert_path):
|
||||
with open(cert_path, "rb") as handler:
|
||||
if handler.read() == cert:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user