mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 16:26:12 +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)
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user