Add conf rollback with Git

This commit is contained in:
VirtuBox
2019-10-03 15:44:23 +02:00
parent 48b4edba5f
commit 404c5696ff
4 changed files with 36 additions and 24 deletions

View File

@@ -1452,10 +1452,12 @@ class WOSiteUpdateController(CementBaseController):
# check DNS records before issuing cert
if not acmedata['dns'] is True:
if not pargs.force:
if not WOAcme.check_dns(self, acme_domains):
if not WOAcme.check_dns(self,
acme_domains):
Log.error(
self,
"Aborting SSL certificate issuance")
"Aborting SSL "
"certificate issuance")
if WOAcme.setupletsencrypt(
self, acme_domains, acmedata):
WOAcme.deploycert(self, wo_domain)