From ac840ad0bd4db285f93737a7078d8072417ebec1 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Fri, 16 Oct 2015 18:17:03 +0530 Subject: [PATCH] Fix #631 --- ee/cli/plugins/site_functions.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index 6d92448c..2e6a65d3 100644 --- a/ee/cli/plugins/site_functions.py +++ b/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]