allow vhroot to track via git

This commit is contained in:
Usman Nasir
2020-03-26 12:10:16 +05:00
parent 7752cfca4e
commit 5748d870a5

View File

@@ -2883,7 +2883,7 @@ StrictHostKeyChecking no
website = Websites.objects.get(domain=self.domain)
folders = ['/home/%s/public_html' % (self.domain), '/home/vmail/%s' % (self.domain)]
folders = ['/home/%s/public_html' % (self.domain), '/home/%s' % (self.domain), '/home/vmail/%s' % (self.domain)]
databases = website.databases_set.all()
@@ -2898,6 +2898,7 @@ StrictHostKeyChecking no
def folderCheck(self):
domainPath = '/home/%s/public_html' % (self.domain)
vhRoot = '/home/%s' % (self.domain)
vmailPath = '/home/vmail/%s' % (self.domain)
website = Websites.objects.get(domain=self.domain)
@@ -2906,6 +2907,10 @@ StrictHostKeyChecking no
self.externalApp = website.externalApp
return 1
if self.folder == vhRoot:
self.externalApp = website.externalApp
return 1
if self.folder == vmailPath:
self.externalApp = 'vmail'
return 1
@@ -3004,7 +3009,7 @@ StrictHostKeyChecking no
## Check if home
home = 0
if self.folder == '/home/%s' % (self.domain):
if self.folder == '/home/%s/public_html' % (self.domain):
home = 1
## Fetch Configurations