Additional check for existant SSL certificates

This commit is contained in:
VirtuBox
2020-01-14 16:30:08 +01:00
parent 937898bfd6
commit f27f491765
2 changed files with 7 additions and 1 deletions

View File

@@ -216,8 +216,13 @@ class WOAcme:
if wo_domain_name == row[0]:
# check if cert expiration exist
if not row[3] == '':
return True
acme_cert = True
certfile.close()
if acme_cert is True:
if os.path.exists(
'/etc/letsencrypt/live/{0}/fullchain.pem'
.format(wo_domain_name)):
return True
return False
def removeconf(self, domain):