Fix letsencrypt

This commit is contained in:
VirtuBox
2019-07-15 12:50:23 +02:00
parent 90e3ebb88c
commit 7e69933bde

View File

@@ -731,10 +731,9 @@ class WOSiteCreateController(CementBaseController):
Log.error(self, "Check the log for details: "
"`tail /var/log/wo/wordops.log` and please try again")
if self.app.pargs.dns:
wo_acme_dns = pargs.dns
if self.app.pargs.letsencrypt:
if self.app.pargs.dns:
wo_acme_dns = pargs.dns
data['letsencrypt'] = True
letsencrypt = True
if data['letsencrypt'] is True:
@@ -1277,10 +1276,9 @@ class WOSiteUpdateController(CementBaseController):
" http://{0}".format(wo_domain))
return 0
if pargs.letsencrypt:
if self.app.pargs.letsencrypt:
if self.app.pargs.dns:
wo_acme_dns = pargs.dns
if data['letsencrypt'] is True:
if not os.path.isfile("{0}/conf/nginx/ssl.conf.disabled"
.format(wo_site_webroot)):