mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +01:00
external app check
This commit is contained in:
@@ -2596,6 +2596,11 @@ StrictHostKeyChecking no
|
|||||||
|
|
||||||
website = Websites.objects.get(domain=self.domain)
|
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'
|
uBuntuPath = '/etc/lsb-release'
|
||||||
|
|
||||||
if os.path.exists(uBuntuPath):
|
if os.path.exists(uBuntuPath):
|
||||||
|
|||||||
Reference in New Issue
Block a user