push install status

This commit is contained in:
Usman Nasir
2021-03-22 13:06:05 +05:00
parent 20714862d7
commit 5e9b36301b
5 changed files with 62 additions and 2 deletions

View File

@@ -2621,6 +2621,19 @@ class CloudManager:
final_json = json.dumps({'status': 1})
return HttpResponse(final_json)
except BaseException as msg:
final_dic = {'status': 0, 'fetchStatus': 0, 'error_message': str(msg)}
final_json = json.dumps(final_dic)
return HttpResponse(final_json)
def SubmitCyberPanelUpgrade(self):
try:
execPath = "/usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/CyberPanelUpgrade.py"
ProcessUtilities.popenExecutioner(execPath)
final_json = json.dumps({'status': 1})
return HttpResponse(final_json)
except BaseException as msg:
final_dic = {'status': 0, 'fetchStatus': 0, 'error_message': str(msg)}
final_json = json.dumps(final_dic)