Browse Source

Handling exception on cache_key_salt on site update

feature/refactor-php
Prabuddha Chakraborty 10 years ago
parent
commit
2b47f11a48
  1. 3
      ee/cli/plugins/site.py

3
ee/cli/plugins/site.py

@ -1307,6 +1307,9 @@ class EESiteUpdateController(CementBaseController):
if oldcachetype != 'wpredis' and data['wpredis']: if oldcachetype != 'wpredis' and data['wpredis']:
try: try:
if installwp_plugin(self, 'redis-cache', data): if installwp_plugin(self, 'redis-cache', data):
if EEShellExec.cmd_exec(self, "grep -r \"WP_CACHE_KEY_SALT\" {0}/wp-config.php".format(ee_site_webroot)):
pass
else:
try: try:
wpconfig = open("{0}/wp-config.php".format(ee_site_webroot), wpconfig = open("{0}/wp-config.php".format(ee_site_webroot),
encoding='utf-8', mode='a') encoding='utf-8', mode='a')

Loading…
Cancel
Save