bug fix: csf

This commit is contained in:
Usman Nasir
2020-01-03 16:24:28 +05:00
parent c16661abef
commit 77e453f252
6 changed files with 10 additions and 4 deletions

View File

@@ -1325,6 +1325,11 @@ class FirewallManager:
else:
return ACLManager.loadErrorJson('installStatus', 0)
if os.path.exists('/usr/local/CyberCP/bin/python3'):
final_dic = {'installStatus': 0, 'error_message': 'CSF is not yet supported on Python 3'}
final_json = json.dumps(final_dic)
return HttpResponse(final_json)
execPath = "sudo /usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/csf.py"
execPath = execPath + " installCSF"