From 806992beb46c8b70813232f42840031ab657712b Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 7 Apr 2020 12:25:14 +0500 Subject: [PATCH] bug fix: convert child to website --- plogical/applicationInstaller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 0bb926854..fd8f87ae6 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -123,10 +123,10 @@ class ApplicationInstaller(multi.Thread): 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]')