add letsencrypt option

This commit is contained in:
VirtuBox
2019-03-16 09:35:58 +01:00
parent 30d555d992
commit c1f7886956

View File

@@ -680,9 +680,6 @@ class WOSiteCreateController(CementBaseController):
"`tail /var/log/wo/wordops.log` and please try again")
if self.app.pargs.letsencrypt == "on":
if stype in ['wpsubdomain']:
Log.warn(
self, "Wildcard domains are not supported in Lets Encrypt.\nWP SUBDOMAIN site will get SSL for primary site only.")
data['letsencrypt'] = True
letsencrypt = True
@@ -1081,6 +1078,12 @@ class WOSiteUpdateController(CementBaseController):
if pargs.letsencrypt == 'on':
data['letsencrypt'] = True
letsencrypt = True
elif pargs.letsencrypt == 'subdomain':
data['letsencrypt'] = True
letsencrypt = True
elif pargs.letsencrypt == 'wildcard':
data['letsencrypt'] = True
letsencrypt = True
elif pargs.letsencrypt == 'off':
data['letsencrypt'] = False
letsencrypt = False