restart litespeed once license is refreshed

This commit is contained in:
Usman Nasir 2020-09-01 13:26:51 +05:00
parent 69d7aba9e2
commit 8b08c839fd
1 changed files with 2 additions and 0 deletions

View File

@ -454,6 +454,8 @@ def refreshLicense(request):
command = 'sudo /usr/local/lsws/bin/lshttpd -V'
ProcessUtilities.outputExecutioner(command)
installUtilities.reStartLiteSpeed()
final_dic = {'status': 1}
final_json = json.dumps(final_dic)
return HttpResponse(final_json)