mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
external app check
This commit is contained in:
@@ -2596,6 +2596,11 @@ StrictHostKeyChecking no
|
||||
|
||||
website = Websites.objects.get(domain=self.domain)
|
||||
|
||||
if website.externalApp != data['externalApp']:
|
||||
data_ret = {'status': 0, 'error_message': 'External app mis-match.'}
|
||||
json_data = json.dumps(data_ret)
|
||||
return HttpResponse(json_data)
|
||||
|
||||
uBuntuPath = '/etc/lsb-release'
|
||||
|
||||
if os.path.exists(uBuntuPath):
|
||||
|
||||
Reference in New Issue
Block a user