Skip to content

Commit 03f7a37

Browse files
committed
minor update in mustache template
1 parent 44251ad commit 03f7a37

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ee/cli/plugins/site.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,8 @@ def doupdatesite(self, pargs):
695695
'wp']) or
696696
(stype == 'wpsubdir' and oldsitetype in ['wpsubdomain']) or
697697
(stype == 'wpsubdomain' and oldsitetype in ['wpsubdir']) or
698-
(stype == oldsitetype and cache == oldcachetype)):
698+
(stype == oldsitetype and cache == oldcachetype) and
699+
not pargs.pagespeed):
699700
Log.info(self, Log.FAIL + "can not update {0} {1} to {2} {3}".
700701
format(oldsitetype, oldcachetype, stype, cache))
701702
return 1

ee/cli/templates/virtualconf.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ server {
2727
}
2828
{{/static}}
2929

30-
{{^static}}include{{/static}} {{^hhvm}}{{#basic}}common/php.conf;{{/basic}}{{#w3tc}}common/w3tc.conf;{{/w3tc}}{{#wpfc}}common/wpfc.conf;{{/wpfc}} {{#wpsc}}common/wpsc.conf;{{/wpsc}} {{/hhvm}}{{#hhvm}}{{#basic}}common/php-hhvm.conf;{{/basic}}{{#w3tc}}common/w3tc-hhvm.conf;{{/w3tc}}{{#wpfc}}common/wpfc-hhvm.conf;{{/wpfc}} {{#wpsc}}common/wpsc-hhvm.conf;{{/wpsc}} {{/hhvm}}
31-
{{#wpsubdir}}include common/wpsubdir.conf;{{/wpsubdir}}
30+
{{^static}}include {{^hhvm}}{{#basic}}common/php.conf;{{/basic}}{{#w3tc}}common/w3tc.conf;{{/w3tc}}{{#wpfc}}common/wpfc.conf;{{/wpfc}} {{#wpsc}}common/wpsc.conf;{{/wpsc}} {{/hhvm}}{{#hhvm}}{{#basic}}common/php-hhvm.conf;{{/basic}}{{#w3tc}}common/w3tc-hhvm.conf;{{/w3tc}}{{#wpfc}}common/wpfc-hhvm.conf;{{/wpfc}} {{#wpsc}}common/wpsc-hhvm.conf;{{/wpsc}} {{/hhvm}}
31+
{{#wpsubdir}}include common/wpsubdir.conf;{{/wpsubdir}}{{/static}}
3232
{{#wp}}include common/wpcommon.conf;{{/wp}}
3333
include common/locations.conf;
3434
{{^vma}}{{^rc}}include {{webroot}}/conf/nginx/*.conf;{{/rc}}{{/vma}}

0 commit comments

Comments
 (0)