File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -623,6 +623,17 @@ def sitebackup(self, data):
623623 Log .info (self , "[" + Log .ENDC + "Done" + Log .OKBLUE + "]" )
624624
625625 configfiles = glob .glob (ee_site_webroot + '/*-config.php' )
626+ if not configfiles :
627+ #search for wp-config.php inside htdocs/
628+ Log .debug (self , "Config files not found in {0}/ "
629+ .format (ee_site_webroot ))
630+ if data ['currsitetype' ] in ['mysql' ]:
631+ pass
632+ else :
633+ Log .debug (self , "Searching wp-config.php in {0}/htdocs/ "
634+ .format (ee_site_webroot ))
635+ configfiles = glob .glob (ee_site_webroot + '/htdocs/wp-config.php' )
636+
626637 # if configfiles and EEFileUtils.isexist(self, configfiles[0]):
627638 # ee_db_name = (EEFileUtils.grep(self, configfiles[0],
628639 # 'DB_NAME').split(',')[1]
You can’t perform that action at this time.
0 commit comments