Browse Source

add letsencrypt command

develop
Prabuddha Chakraborty 9 years ago
parent
commit
58d6c73c16
  1. 7
      ee/cli/plugins/site.py

7
ee/cli/plugins/site.py

@ -761,6 +761,9 @@ class EESiteUpdateController(CementBaseController):
dict(help='Use PageSpeed for site', dict(help='Use PageSpeed for site',
action='store' or 'store_const', action='store' or 'store_const',
choices=('on', 'off'), const='on', nargs='?')), choices=('on', 'off'), const='on', nargs='?')),
(['--letsencrypt'],
dict(help="configure letsencrypt ssl for the site",
action='store_true')),
(['--proxy'], (['--proxy'],
dict(help="update to proxy site", nargs='+')), dict(help="update to proxy site", nargs='+')),
(['--experimental'], (['--experimental'],
@ -1085,6 +1088,9 @@ class EESiteUpdateController(CementBaseController):
data['pagespeed'] = True data['pagespeed'] = True
pagespeed = True pagespeed = True
if pargs.letsencrypt:
setupLetsEncrypt(self, ee_domain)
if data['currcachetype'] != 'wpredis' and pargs.wpredis: if data['currcachetype'] != 'wpredis' and pargs.wpredis:
if (not pargs.experimental): if (not pargs.experimental):
Log.info(self, "Redis is experimental feature and it may not" Log.info(self, "Redis is experimental feature and it may not"
@ -1151,6 +1157,7 @@ class EESiteUpdateController(CementBaseController):
if pargs.pagespeed: if pargs.pagespeed:
operateOnPagespeed(self, data) operateOnPagespeed(self, data)
if stype == oldsitetype and cache == oldcachetype: if stype == oldsitetype and cache == oldcachetype:
# Service Nginx Reload # Service Nginx Reload

Loading…
Cancel
Save