Improve acme logging

This commit is contained in:
VirtuBox
2019-09-23 01:11:27 +02:00
parent cfb7a98c7b
commit da23fc88ae
2 changed files with 4 additions and 1 deletions

View File

@@ -1419,10 +1419,14 @@ class WOSiteUpdateController(CementBaseController):
if WOAcme.setupletsencrypt(
self, acme_domains, acmedata):
WOAcme.deploycert(self, wo_domain)
else:
Log.error(self, "Unable to issue certificate")
else:
if WOAcme.setupletsencrypt(
self, acme_domains, acmedata):
WOAcme.deploycert(self, wo_domain)
else:
Log.error(self, "Unable to issue certificate")
else:
WOFileUtils.mvfile(self, "{0}/conf/nginx/ssl.conf.disabled"
.format(wo_site_webroot),