Browse Source

Fix #631

hotfix/v3.3.14
Prabuddha Chakraborty 9 years ago
parent
commit
ac840ad0bd
  1. 11
      ee/cli/plugins/site_functions.py

11
ee/cli/plugins/site_functions.py

@ -623,6 +623,17 @@ def sitebackup(self, data):
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
configfiles = glob.glob(ee_site_webroot + '/*-config.php')
if not configfiles:
#search for wp-config.php inside htdocs/
Log.debug(self, "Config files not found in {0}/ "
.format(ee_site_webroot))
if data['currsitetype'] in ['mysql']:
pass
else:
Log.debug(self, "Searching wp-config.php in {0}/htdocs/ "
.format(ee_site_webroot))
configfiles = glob.glob(ee_site_webroot + '/htdocs/wp-config.php')
# if configfiles and EEFileUtils.isexist(self, configfiles[0]):
# ee_db_name = (EEFileUtils.grep(self, configfiles[0],
# 'DB_NAME').split(',')[1]

Loading…
Cancel
Save