mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +01:00
bug fix: backup engine
This commit is contained in:
@@ -178,6 +178,9 @@ class BackupManager:
|
|||||||
try:
|
try:
|
||||||
command = "sudo cat " + backupFileNamePath
|
command = "sudo cat " + backupFileNamePath
|
||||||
fileName = ProcessUtilities.outputExecutioner(command, domain.externalApp)
|
fileName = ProcessUtilities.outputExecutioner(command, domain.externalApp)
|
||||||
|
if fileName.find('No such file or directory') > -1:
|
||||||
|
final_json = json.dumps({'backupStatus': 0, 'error_message': "None", "status": 0, "abort": 0})
|
||||||
|
return HttpResponse(final_json)
|
||||||
except:
|
except:
|
||||||
fileName = "Fetching.."
|
fileName = "Fetching.."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user