Skip to content
Permalink
Browse files
bug fix: convert child to website
  • Loading branch information
usmannasir committed Apr 7, 2020
1 parent 858d261 commit 806992beb46c8b70813232f42840031ab657712b
Showing 1 changed file with 3 additions and 3 deletions.
@@ -123,10 +123,10 @@ def convertDomainToSite(self):
command = 'mv %s /home/%s/public_html' % (path, domainName)
ProcessUtilities.executioner(command)

website = Websites.objects.get(domain=domainName)
from filemanager.filemanager import FileManager

command = 'chown %s:%s /home/%s/public_html' % (website.externalApp, website.externalApp, domainName)
ProcessUtilities.executioner(command)
fm = FileManager(None, None)
fm.fixPermissions(domainName)

statusFile = open(self.tempStatusPath, 'w')
statusFile.writelines('Successfully converted. [200]')

0 comments on commit 806992b

Please sign in to comment.