Skip to content
Browse files
cPanel Importer: Cater domains outside document root
  • Loading branch information
usmannasir committed Aug 24, 2019
1 parent eefaf46 commit cbf4f2f5fe0c57f5dcc894d2029df3959215ea10
Showing with 9 additions and 1 deletion.
  1. +9 −1 plogical/
@@ -440,7 +440,15 @@ def CreateChildDomains(self):
movePath = '%s/homedir/public_html/%s' % (
CompletPathToExtractedArchive, ChildDocRoot.replace(self.documentRoot, '', 1).replace('/', ''))

shutil.move(movePath, path)
print movePath

if os.path.exists(movePath):
shutil.move(movePath, path)
movePath = '%s/homedir/%s' % (
CompletPathToExtractedArchive, ChildDocRoot.split('/')[-1].replace(self.documentRoot, '', 1).replace('/', ''))
print movePath
shutil.move(movePath, path)

command = 'chown -R %s:%s %s' % (externalApp, externalApp, path)

2 comments on commit cbf4f2f


This comment has been minimized.

Copy link

@w3servicesdotnet w3servicesdotnet replied Aug 24, 2019

Not working. As subdomain data moving to inside but its not listed on subdomain list.


This comment has been minimized.

Copy link
Owner Author

@usmannasir usmannasir replied Aug 24, 2019

in CyberPanel child domains are always inside the master domain. Above fix will only cater on cPanel site.

Please sign in to comment.