Skip to content

Commit 92a0b58

Browse files
committed
Fix for disable pagespeed
1 parent 84f3b0a commit 92a0b58

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ee/cli/plugins/site.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,12 @@ def doupdatesite(self, pargs):
855855
old_hhvm = check_site.is_hhvm
856856
old_pagespeed = check_site.is_pagespeed
857857

858+
if pagespeed is old_pagespeed:
859+
if pagespeed is False:
860+
data['old_pagespeed'] = False
861+
elif pagespeed is True:
862+
data['old_pagespeed'] = True
863+
858864
if (pargs.password and not (pargs.html or
859865
pargs.php or pargs.mysql or pargs.wp or
860866
pargs.w3tc or pargs.wpfc or pargs.wpsc

ee/cli/plugins/site_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def sitebackup(self, data):
618618
.format(data['site_name']), backup_path)
619619

620620
if data['currsitetype'] in ['html', 'php', 'proxy', 'mysql']:
621-
if data['pagespeed'] is True and not data['wp']:
621+
if data['pagespeed'] is True or data['old_pagespeed'] is True and not data['wp']:
622622
Log.info(self, "Backing up Webroot \t\t", end='')
623623
EEFileUtils.copyfiles(self, ee_site_webroot + '/htdocs', backup_path + '/htdocs')
624624
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
@@ -658,7 +658,7 @@ def sitebackup(self, data):
658658
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
659659
# move wp-config.php/ee-config.php to backup
660660
if data['currsitetype'] in ['mysql', 'proxy']:
661-
if data['pagespeed'] is True and not data['wp']:
661+
if data['pagespeed'] is True or data['old_pagespeed'] is True and not data['wp']:
662662
EEFileUtils.copyfile(self, configfiles[0], backup_path)
663663
else:
664664
EEFileUtils.mvfile(self, configfiles[0], backup_path)

0 commit comments

Comments
 (0)