Skip to content

Commit 3c6bdf4

Browse files
committed
Merge branch 'feature/v3.4.0' into develop
2 parents 77f63f3 + f8923f8 commit 3c6bdf4

File tree

19 files changed

+682
-72
lines changed

19 files changed

+682
-72
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
notifications:
2-
slack: rtcamp:MGteQ7CA6kFIsNbMIarkeWxa
2+
slack: easyengine:76AI30tP8P8AcNTaWaQ9ZAT7
33
webhooks:
44
urls:
55
- https://webhooks.gitter.im/e/bd77a26eab56de803949

CHANGELOG.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
v3.4.0 - Jan 6, 2015
2+
- Added Let's Encrypt support
3+
- ee site create example.com [--wp/..] --letsencrypt
4+
- ee site update example.com --letsencrypt=on/off/renew
5+
- Automatic renew of certs through cron
6+
- Mail notification added on certs renew
7+
- Alias command: --le
8+
- Added HTTP/2 support
9+
- ee stack install/remove/purge --nginxmainline
10+
- Check SSL cert status/expiry date in site info
11+
- ee site info example.com
12+
- Update autocompletion and man page
13+
114
v3.3.15 - Dec 9, 2015
215
- Upgrade wp-cli version to 0.21.1
316

config/bash_completion.d/ee_auto.rc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ _ee_complete()
7474
# HANDLE EVERYTHING AFTER THE THIRD LEVEL NAMESPACE
7575
"install" | "purge" | "remove" )
7676
COMPREPLY=( $(compgen \
77-
-W "--pagespeed --web --admin --mail --nginx --php --mysql --postfix --wpcli --phpmyadmin --adminer --utils --all --mailscanner --hhvm --redis --phpredisadmin" \
77+
-W "--pagespeed --web --admin --mail --nginx --nginxmainline --php --mysql --postfix --wpcli --phpmyadmin --adminer --utils --all --mailscanner --hhvm --redis --phpredisadmin" \
7878
-- $cur) )
7979
;;
8080
"upgrade" )
@@ -165,13 +165,13 @@ _ee_complete()
165165

166166
"create")
167167
COMPREPLY=( $(compgen \
168-
-W "--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --proxy= --pagespeed --wpredis" \
168+
-W "--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --proxy= --pagespeed --wpredis --letsencrypt -le" \
169169
-- $cur) )
170170
;;
171171

172172
"update")
173173
COMPREPLY=( $(compgen \
174-
-W "--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --wpredis" \
174+
-W "--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew" \
175175
-- $cur) )
176176
;;
177177
"delete")
@@ -217,9 +217,9 @@ _ee_complete()
217217
"--wp")
218218
if [ ${COMP_WORDS[1]} != "debug" ]; then
219219
if [ ${COMP_WORDS[2]} == "create" ]; then
220-
retlist="--wp --wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis"
220+
retlist="--wp --wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis --letsencrypt"
221221
elif [ ${COMP_WORDS[2]} == "update" ]; then
222-
retlist="--wp --w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis"
222+
retlist="--wp --w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
223223
else
224224
retlist=""
225225
fi
@@ -236,9 +236,9 @@ _ee_complete()
236236
"--wpsubdir" | "--wpsubdomain")
237237
if [ ${COMP_WORDS[1]} != "debug" ]; then
238238
if [ ${COMP_WORDS[2]} == "create" ]; then
239-
retlist="--wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis"
239+
retlist="--wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis --letsencrypt"
240240
elif [ ${COMP_WORDS[2]} == "update" ]; then
241-
retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis"
241+
retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
242242
else
243243
retlist=""
244244
fi
@@ -254,7 +254,7 @@ _ee_complete()
254254

255255
"--pagespeed" | "--hhvm" | "--wpredis" | "--w3tc" | "--wpfc" | "--wpsc" | "--wpsubdir" | "--wpsubdomain" | "--user" | "--pass" | "--email" | "--wp")
256256
if [ ${COMP_WORDS[2]} == "create" ]; then
257-
retlist="--user --pass --email --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --experimenal --wpredis"
257+
retlist="--user --pass --email --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --experimenal --wpredis --letsencrypt"
258258
else
259259
retlist=""
260260
fi
@@ -267,7 +267,7 @@ _ee_complete()
267267

268268
"--pagespeed" | "--hhvm" | "--wpredis" | "--w3tc" | "--wpfc")
269269
if [ ${COMP_WORDS[2]} == "update" ]; then
270-
retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --experimenal --wpredis"
270+
retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --experimenal --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
271271
else
272272
retlist=""
273273
fi
@@ -320,7 +320,7 @@ _ee_complete()
320320
elif [ ${COMP_WORDS[2]} == "delete" ]; then
321321
retlist="--db --files --force"
322322
elif [ ${COMP_WORDS[2]} == "update" ]; then
323-
retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --wpredis"
323+
retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
324324
else
325325
retlist=""
326326
fi
@@ -369,7 +369,7 @@ _ee_complete()
369369
case "$mprev" in
370370
"--user" | "--email" | "--pass")
371371
if [ ${COMP_WORDS[2]} == "create" ]; then
372-
retlist="--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --wpredis"
372+
retlist="--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --wpredis --letsencrypt"
373373
fi
374374
ret="${retlist[@]/$prev}"
375375
COMPREPLY=( $(compgen \

docs/ee.8

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
.SH SYNOPSIS
66
ee [ --version | --help | info | stack | site | debug | update | clean | import_slow_log | log | secure | sync]
77
.TP
8-
ee stack [ install | remove | purge | migrate | upgrade] [ --web | --mail | --all | --nginx | --php | --mysql | --admin | --postfix | --mailscanner | --adminer | --redis | --hhvm | --phpmyadmin | --phpredisadmin | --wpcli | --utils ]
8+
ee stack [ install | remove | purge | migrate | upgrade] [ --web | --mail | --all | --nginx | --nginxmainline | --php | --mysql | --admin | --postfix | --mailscanner | --adminer | --redis | --hhvm | --phpmyadmin | --phpredisadmin | --wpcli | --utils ]
99
.TP
1010
ee stack [ status | start | stop | reload | restart ] [--all | --nginx | --php | --mysql | --devcot | --web | --postfix | --memcache | --redis]
1111
.TP
1212
ee site [ list | info | show | enable | disable | edit | cd | show ] [ example.com ]
1313
.TP
14-
ee site create example.com [ --html | --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --w3tc | --wpfc | --wpredis | --hhvm | --pagespeed ]]
14+
ee site create example.com [ --html | --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --w3tc | --wpfc | --wpredis | --hhvm | --pagespeed | --letsencrypt/-le]]
1515
.TP
16-
ee site update example.com [ --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --w3tc | --wpfc | --wpredis | --hhvm | --pagespeed ] [--password]]
16+
ee site update example.com [ --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --w3tc | --wpfc | --wpredis | --hhvm | --pagespeed ] [--password] [--letsencrypt=on/off/renew]]
1717
.TP
1818
ee site delete example.com [--db | --files | --all | --no-prompt | --force/-f ]
1919
.TP
@@ -307,12 +307,12 @@ Report bugs at <http://github.com/rtCamp/easyengine/issues/>
307307
.B Harshad
308308
309309
.br
310-
.B Shital
311-
312-
.br
313310
.B Prabuddha
314311
315312
.br
313+
.B Shital
314+
315+
.br
316316
.B Rajdeep Sharma
317317
318318
.br

ee/cli/plugins/secure.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from cement.core.controller import CementBaseController, expose
22
from cement.core import handler, hook
3+
from ee.core.aptget import EEAptGet
34
from ee.core.shellexec import EEShellExec
45
from ee.core.variables import EEVariables
56
from ee.core.logging import Log
@@ -95,14 +96,16 @@ def secure_port(self):
9596
self.app.pargs.user_input = port
9697
if EEVariables.ee_platform_distro == 'ubuntu':
9798
EEShellExec.cmd_exec(self, "sed -i \"s/listen.*/listen "
98-
"{port} default_server ssl spdy;/\" "
99+
"{port} default_server ssl {http2};/\" "
99100
"/etc/nginx/sites-available/22222"
100-
.format(port=self.app.pargs.user_input))
101+
.format(port=self.app.pargs.user_input,http2=("http2" if
102+
EEAptGet.is_installed(self,'nginx-mainline') else "spdy")))
101103
if EEVariables.ee_platform_distro == 'debian':
102104
EEShellExec.cmd_exec(self, "sed -i \"s/listen.*/listen "
103-
"{port} default_server ssl;/\" "
105+
"{port} default_server ssl {http2};/\" "
104106
"/etc/nginx/sites-available/22222"
105-
.format(port=self.app.pargs.user_input))
107+
.format(port=self.app.pargs.user_input,http2=("http2" if
108+
EEAptGet.is_installed(self,'nginx-mainline') else "spdy")))
106109
EEGit.add(self, ["/etc/nginx"],
107110
msg="Adding changed secure port into Git")
108111
if not EEService.reload_service(self, 'nginx'):

0 commit comments

Comments
 (0)