cPanel importer: fix symlink error.

This commit is contained in:
Usman Nasir
2019-08-20 02:50:35 +05:00
parent 97b5bd0e70
commit 471acf17ea

View File

@@ -269,7 +269,7 @@ class cPanelImporter:
movePath = '%s/homedir/%s' % (
CompletPathToExtractedArchive, self.documentRoot.replace(self.homeDir, '', 1).replace('/', ''))
shutil.copytree(movePath, nowPath)
shutil.copytree(movePath, nowPath, symlinks=True)
command = 'chown -R %s:%s %s' % (externalApp, externalApp, nowPath)
ProcessUtilities.normalExecutioner(command)