mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 09:16:11 +01:00
allow vhroot to track via git
This commit is contained in:
@@ -2883,7 +2883,7 @@ StrictHostKeyChecking no
|
|||||||
|
|
||||||
website = Websites.objects.get(domain=self.domain)
|
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()
|
databases = website.databases_set.all()
|
||||||
|
|
||||||
@@ -2898,6 +2898,7 @@ StrictHostKeyChecking no
|
|||||||
|
|
||||||
def folderCheck(self):
|
def folderCheck(self):
|
||||||
domainPath = '/home/%s/public_html' % (self.domain)
|
domainPath = '/home/%s/public_html' % (self.domain)
|
||||||
|
vhRoot = '/home/%s' % (self.domain)
|
||||||
vmailPath = '/home/vmail/%s' % (self.domain)
|
vmailPath = '/home/vmail/%s' % (self.domain)
|
||||||
|
|
||||||
website = Websites.objects.get(domain=self.domain)
|
website = Websites.objects.get(domain=self.domain)
|
||||||
@@ -2906,6 +2907,10 @@ StrictHostKeyChecking no
|
|||||||
self.externalApp = website.externalApp
|
self.externalApp = website.externalApp
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
if self.folder == vhRoot:
|
||||||
|
self.externalApp = website.externalApp
|
||||||
|
return 1
|
||||||
|
|
||||||
if self.folder == vmailPath:
|
if self.folder == vmailPath:
|
||||||
self.externalApp = 'vmail'
|
self.externalApp = 'vmail'
|
||||||
return 1
|
return 1
|
||||||
@@ -3004,7 +3009,7 @@ StrictHostKeyChecking no
|
|||||||
## Check if home
|
## Check if home
|
||||||
|
|
||||||
home = 0
|
home = 0
|
||||||
if self.folder == '/home/%s' % (self.domain):
|
if self.folder == '/home/%s/public_html' % (self.domain):
|
||||||
home = 1
|
home = 1
|
||||||
|
|
||||||
## Fetch Configurations
|
## Fetch Configurations
|
||||||
|
|||||||
Reference in New Issue
Block a user