Skip to content
Permalink
Browse files
bug fix: mail domain skip while restore
  • Loading branch information
usmannasir committed Feb 9, 2020
1 parent 4611c32 commit 1c3970aab3c75a74691e6c4fc92b9ee1c92204ad
Showing 2 changed files with 12 additions and 0 deletions.
@@ -3,3 +3,4 @@
.LSOverride
*.pyc
.idea
venv
@@ -628,6 +628,16 @@ def startRestore(backupName, dir):
for childDomain in childDomains:

domain = childDomain.find('domain').text

## mail domain check

mailDomain = 'mail.%s' % (masterDomain)

if domain == mailDomain:
continue

## Mail domain check

phpSelection = childDomain.find('phpSelection').text
path = childDomain.find('path').text

@@ -668,6 +678,7 @@ def startRestore(backupName, dir):

continue
else:
logging.CyberCPLogFileWriter.writeToFile('Error domain %s' % (domain))
logging.CyberCPLogFileWriter.statusWriter(status, "Error Message: " + retValues[1] + ". Not able to create child domains, aborting. [635][5009]")
return 0
except BaseException as msg:

0 comments on commit 1c3970a

Please sign in to comment.