Skip to content

Commit 9a5d447

Browse files
author
gau1991
committed
Merge branch 'master' into stable
2 parents 89a76b6 + f366003 commit 9a5d447

File tree

18 files changed

+551
-92
lines changed

18 files changed

+551
-92
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ before_install:
1414
- rm -rf ~/.gnupg
1515

1616
before_script:
17+
- sudo rm -rf /etc/mysql/
1718
- sudo bash -c 'echo example.com > /etc/hostname'
1819
- sudo service hostname restart
1920
- sudo apt-get -qq purge mysql* graphviz*
@@ -22,7 +23,7 @@ before_script:
2223

2324
script:
2425
- unset LANG
25-
- sudo echo -e "[user]\n\tname = abc\n\temail = [email protected]" > ~/.gitconfig
26+
- sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = [email protected]" > /home/travis/.gitconfig'
2627
- sudo echo "Travis Banch = $TRAVIS_BRANCH"
2728
- sudo apt-get install -y --force-yes git python3-setuptools python3-dev python3-apt
2829
- sudo bash install $TRAVIS_BRANCH
@@ -117,3 +118,4 @@ script:
117118
- sudo ee stack install --mail
118119
- sudo ls /var/www/
119120
- sudo wp --allow-root --info
121+
- sudo bash -c 'cat /var/log/ee/ee.log'

CHANGELOG.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v 3.1.2 - April 29, 2015
2+
- Updated PHP version from PHP 5.5 to PHP 5.6 #425
3+
- Added ee stack upgrade command for stack upgrade #458
4+
- Added support for Proxy site creation #389
5+
- Added extra parameters such as User, Password and EMail during site creation #453
6+
- Fixed timezone related warnings and errors #451
7+
8+
19
v 3.1.1 - April 21, 2015
210
- Feature: update all site at once #491
311
- Tweaked import-slow-log command #322

config/bash_completion.d/ee_auto.rc

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _ee_complete()
3535

3636
"stack")
3737
COMPREPLY=( $(compgen \
38-
-W "install purge reload remove restart start status stop migrate" \
38+
-W "upgrade install purge reload remove restart start status stop migrate" \
3939
-- $cur) )
4040
;;
4141

@@ -74,7 +74,12 @@ _ee_complete()
7474
# HANDLE EVERYTHING AFTER THE THIRD LEVEL NAMESPACE
7575
"install" | "purge" | "remove" )
7676
COMPREPLY=( $(compgen \
77-
-W "--web --admin --mail --nginx --php --mysql --postfix --wpcli --phpmyadmin --adminer --utils --memcache --dovecot --all --mailscanner --hhvm" \
77+
-W "--web --admin --mail --nginx --php --mysql --postfix --wpcli --phpmyadmin --adminer --utils --all --mailscanner --hhvm" \
78+
-- $cur) )
79+
;;
80+
"upgrade" )
81+
COMPREPLY=( $(compgen \
82+
-W "--web --mail --nginx --php --mysql --postfix --all --hhvm --php56 --no-prompt" \
7883
-- $cur) )
7984
;;
8085
"start" | "stop" | "reload" | "restart" | "status")
@@ -160,7 +165,7 @@ _ee_complete()
160165

161166
"create")
162167
COMPREPLY=( $(compgen \
163-
-W "--html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed" \
168+
-W "--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --proxy= --pagespeed" \
164169
-- $cur) )
165170
;;
166171

@@ -211,7 +216,13 @@ _ee_complete()
211216
case "$prev" in
212217
"--wp" | "--wpsubdir" | "--wpsubdomain")
213218
if [ ${COMP_WORDS[1]} != "debug" ]; then
214-
retlist="--w3tc --wpfc --wpsc"
219+
if [ ${COMP_WORDS[2]} == "create" ]; then
220+
retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --user --email --pass"
221+
elif [ ${COMP_WORDS[2]} == "update" ]; then
222+
retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off"
223+
else
224+
retlist=""
225+
fi
215226
else
216227
retlist="--wp=off --rewrite --rewrite=off -i --interactive"
217228
fi
@@ -222,6 +233,21 @@ _ee_complete()
222233
-- $cur) )
223234
;;
224235

236+
"--pagespeed" | "--hhvm")
237+
if [ ${COMP_WORDS[2]} == "create" ]; then
238+
retlist="--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed"
239+
elif [ ${COMP_WORDS[2]} == "update" ]; then
240+
retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off"
241+
else
242+
retlist=""
243+
fi
244+
245+
ret="${retlist[@]/$prev}"
246+
COMPREPLY=( $(compgen \
247+
-W "$(echo $ret)" \
248+
-- $cur) )
249+
;;
250+
225251
"--web" | "--admin" | "--mail" | "--nginx" | "--php" | "--mysql" | "--postfix" | "--wpcli" | "--phpmyadmin" | "--adminer" | "--utils" | "--memcache" | "--dovecot")
226252
if [[ ${COMP_WORDS[2]} == "install" || ${COMP_WORDS[2]} == "purge" || ${COMP_WORDS[2]} == "remove" ]]; then
227253
retlist="--web --admin --mail --nginx --php --mysql --postfix --wpcli --phpmyadmin --adminer --utils --memcache --dovecot"
@@ -310,6 +336,17 @@ _ee_complete()
310336
*)
311337
;;
312338
esac
339+
case "$mprev" in
340+
"--user" | "--email" | "--pass")
341+
if [ ${COMP_WORDS[2]} == "create" ]; then
342+
retlist="--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed"
343+
fi
344+
ret="${retlist[@]/$prev}"
345+
COMPREPLY=( $(compgen \
346+
-W "$(echo $ret)" \
347+
-- $cur) )
348+
;;
349+
esac
313350

314351
return 0
315352

ee/cli/plugins/debug.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,17 @@ def debug_php(self):
180180
";zend_extension",
181181
"zend_extension")
182182

183+
# Fix slow log is not enabled default in PHP5.6
184+
config = configparser.ConfigParser()
185+
config.read('/etc/php5/fpm/pool.d/debug.conf')
186+
config['debug']['slowlog'] = '/var/log/php5/slow.log'
187+
config['debug']['request_slowlog_timeout'] = '10s'
188+
with open('/etc/php5/fpm/pool.d/debug.conf',
189+
encoding='utf-8', mode='w') as confifile:
190+
Log.debug(self, "Writting debug.conf configuration into "
191+
"/etc/php5/fpm/pool.d/debug.conf")
192+
config.write(confifile)
193+
183194
self.trigger_php = True
184195
self.trigger_nginx = True
185196
else:
@@ -505,7 +516,7 @@ def default(self):
505516
"'ee debug --import-slow-log'"):
506517
if not cron_time == 0:
507518
Log.info(self, "setting up crontab entry,"
508-
" please wait ...")
519+
" please wait...")
509520
EEShellExec.cmd_exec(self, "/bin/bash -c \"crontab -l "
510521
"2> /dev/null | {{ cat; echo -e"
511522
" \\\"#EasyEngine start MySQL "
@@ -518,7 +529,7 @@ def default(self):
518529
else:
519530
if not cron_time == 0:
520531
Log.info(self, "updating crontab entry,"
521-
" please wait ...")
532+
" please wait...")
522533
if not EEShellExec.cmd_exec(self, "/bin/bash -c "
523534
"\"crontab "
524535
"-l | sed '/EasyEngine "
@@ -533,7 +544,7 @@ def default(self):
533544
Log.error(self, "failed to update crontab entry")
534545
else:
535546
Log.info(self, "removing crontab entry,"
536-
" please wait ...")
547+
" please wait...")
537548
if not EEShellExec.cmd_exec(self, "/bin/bash -c "
538549
"\"crontab "
539550
"-l | sed '/EasyEngine "

0 commit comments

Comments
 (0)