bug fix: permpath after adding custom path for child domains

This commit is contained in:
Usman Nasir
2020-04-06 12:33:20 +05:00
parent 02ce6ac228
commit 36e85efd72

View File

@@ -265,7 +265,7 @@ class ApplicationInstaller(multi.Thread):
statusFile.close()
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website.master)
self.permPath = '/home/%s/public_html' % (website.master.domain)
self.permPath = website.path
except:
website = Websites.objects.get(domain=domainName)
@@ -446,7 +446,7 @@ class ApplicationInstaller(multi.Thread):
statusFile.close()
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website.master)
self.permPath = '/home/%s/public_html' % (website.master.domain)
self.permPath = website.path
except:
website = Websites.objects.get(domain=domainName)
@@ -1068,7 +1068,7 @@ class ApplicationInstaller(multi.Thread):
statusFile.close()
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website.master)
self.permPath = '/home/%s/public_html' % (website.master.domain)
self.permPath = website.path
except:
website = Websites.objects.get(domain=domainName)