mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
bug fix: upload large files to s3
This commit is contained in:
@@ -22,6 +22,7 @@ from highAvailability.haManager import HAManager
|
||||
from plogical.httpProc import httpProc
|
||||
from s3Backups.s3Backups import S3Backups
|
||||
import os
|
||||
from serverStatus.views import topProcessesStatus, killProcess
|
||||
|
||||
class CloudManager:
|
||||
def __init__(self, data=None, admin = None):
|
||||
@@ -911,3 +912,18 @@ class CloudManager:
|
||||
return self.ajaxPre(1, None)
|
||||
except BaseException, msg:
|
||||
return self.ajaxPre(0, str(msg))
|
||||
|
||||
|
||||
def systemStatus(self, request):
|
||||
try:
|
||||
return topProcessesStatus(request)
|
||||
except BaseException, msg:
|
||||
return self.ajaxPre(0, str(msg))
|
||||
|
||||
|
||||
def killProcess(self, request):
|
||||
try:
|
||||
request.session['userID'] = self.admin.pk
|
||||
return killProcess(request)
|
||||
except BaseException, msg:
|
||||
return self.ajaxPre(0, str(msg))
|
||||
Reference in New Issue
Block a user