mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix: mail domain skip while restore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
.LSOverride
|
.LSOverride
|
||||||
*.pyc
|
*.pyc
|
||||||
.idea
|
.idea
|
||||||
|
venv
|
||||||
|
|||||||
@@ -628,6 +628,16 @@ class backupUtilities:
|
|||||||
for childDomain in childDomains:
|
for childDomain in childDomains:
|
||||||
|
|
||||||
domain = childDomain.find('domain').text
|
domain = childDomain.find('domain').text
|
||||||
|
|
||||||
|
## mail domain check
|
||||||
|
|
||||||
|
mailDomain = 'mail.%s' % (masterDomain)
|
||||||
|
|
||||||
|
if domain == mailDomain:
|
||||||
|
continue
|
||||||
|
|
||||||
|
## Mail domain check
|
||||||
|
|
||||||
phpSelection = childDomain.find('phpSelection').text
|
phpSelection = childDomain.find('phpSelection').text
|
||||||
path = childDomain.find('path').text
|
path = childDomain.find('path').text
|
||||||
|
|
||||||
@@ -668,6 +678,7 @@ class backupUtilities:
|
|||||||
|
|
||||||
continue
|
continue
|
||||||
else:
|
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]")
|
logging.CyberCPLogFileWriter.statusWriter(status, "Error Message: " + retValues[1] + ". Not able to create child domains, aborting. [635][5009]")
|
||||||
return 0
|
return 0
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
|
|||||||
Reference in New Issue
Block a user