Browse Source

Update indent. Provided more user freindly log

feature/refactor-php
Prabuddha Chakraborty 9 years ago
parent
commit
52bcc8c801
  1. 6
      ee/cli/plugins/site.py

6
ee/cli/plugins/site.py

@ -1314,14 +1314,14 @@ class EESiteUpdateController(CementBaseController):
wpconfig = open("{0}/wp-config.php".format(ee_site_webroot),
encoding='utf-8', mode='a')
wpconfig.write("\n\ndefine( \'WP_CACHE_KEY_SALT\', \'{0}:\' );"
.format(ee_domain))
.format(ee_domain))
wpconfig.close()
except IOError as e:
Log.debug(self, str(e))
Log.debug(self, "Editing wp-config.php failed.")
Log.info(self, Log.FAIL + "Editing wp-config failed. "
"Could not append:"
" define( 'WP_CACHE_KEY_SALT', '{sitename}:' );")
"Could not append:"
" define( \'WP_CACHE_KEY_SALT\', \'{0}:\' );".format(ee_domain))
except SiteError as e:
Log.debug(self, str(e))

Loading…
Cancel
Save