|
|
@ -37,10 +37,14 @@ class EESyncController(CementBaseController): |
|
|
|
ee_site_webroot = site.site_path |
|
|
|
# Read config files |
|
|
|
configfiles = glob.glob(ee_site_webroot + '/*-config.php') |
|
|
|
|
|
|
|
|
|
|
|
#search for wp-config.php inside htdocs/ |
|
|
|
if not configfiles: |
|
|
|
Log.debug(self, "Config files not found in {0}/ " |
|
|
|
.format(ee_site_webroot)) |
|
|
|
if site.site_type != 'mysql': |
|
|
|
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: |
|
|
|