Skip to content

Commit 806992b

Browse files
committed
bug fix: convert child to website
1 parent 858d261 commit 806992b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plogical/applicationInstaller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ def convertDomainToSite(self):
123123
command = 'mv %s /home/%s/public_html' % (path, domainName)
124124
ProcessUtilities.executioner(command)
125125

126-
website = Websites.objects.get(domain=domainName)
126+
from filemanager.filemanager import FileManager
127127

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

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

0 commit comments

Comments
 (0)