Browse Source

change grep -r to grep -q

feature/refactor-php
Prabuddha Chakraborty 9 years ago
parent
commit
9d8cd4668d
  1. 2
      ee/cli/plugins/site.py

2
ee/cli/plugins/site.py

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

Loading…
Cancel
Save