mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
remove undeeded code
This commit is contained in:
@@ -448,20 +448,6 @@ def refreshLicense(request):
|
|||||||
|
|
||||||
installUtilities.reStartLiteSpeed()
|
installUtilities.reStartLiteSpeed()
|
||||||
|
|
||||||
## for testing
|
|
||||||
|
|
||||||
from plogical.Backupsv2 import CPBackupsV2
|
|
||||||
cpbuv2 = CPBackupsV2(
|
|
||||||
{'domain': 'cyberpanel.net', 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1,
|
|
||||||
'BackupEmails': 1, 'BackendName': 'testremote'})
|
|
||||||
RcloneData = {"name":'testremote', "host":"staging.cyberpanel.net", "user": "abcds2751", "port": "22", "password":"hosting",}
|
|
||||||
cpbuv2.SetupRcloneBackend(CPBackupsV2.SFTP, RcloneData)
|
|
||||||
cpbuv2.InitiateBackup()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#cpbuv2.InstallRustic()
|
|
||||||
|
|
||||||
final_dic = {'status': 1}
|
final_dic = {'status': 1}
|
||||||
final_json = json.dumps(final_dic)
|
final_json = json.dumps(final_dic)
|
||||||
return HttpResponse(final_json)
|
return HttpResponse(final_json)
|
||||||
|
|||||||
Reference in New Issue
Block a user