Skip to content

Commit

Permalink
bug fix: convert child to website
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Apr 7, 2020
1 parent 858d261 commit 806992b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plogical/applicationInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]')
Expand Down

0 comments on commit 806992b

Please sign in to comment.