mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
bug fix: prevent dockerapps to be created by less ram
This commit is contained in:
@@ -6887,6 +6887,17 @@ StrictHostKeyChecking no
|
||||
WPemal = data['WPemal']
|
||||
WPpasswd = data['WPpasswd']
|
||||
|
||||
if int(MYsqlRam) < 256:
|
||||
final_dic = {'status': 0, 'error_message': 'Minimum MySQL ram should be 512MB.'}
|
||||
final_json = json.dumps(final_dic)
|
||||
return HttpResponse(final_json)
|
||||
|
||||
if int(SiteRam) < 256:
|
||||
final_dic = {'status': 0, 'error_message': 'Minimum site ram should be 512MB.'}
|
||||
final_json = json.dumps(final_dic)
|
||||
return HttpResponse(final_json)
|
||||
|
||||
|
||||
pattern = r"^[a-z0-9][a-z0-9]*$"
|
||||
|
||||
if re.match(pattern, sitename):
|
||||
|
||||
Reference in New Issue
Block a user