From d2a3aa2732c39dace079e0e10fb0d4be0d875925 Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Sat, 6 May 2023 15:06:15 +0500 Subject: [PATCH] bug fix imunify360 issue: https://github.com/usmannasir/cyberpanel/issues/1062 --- CLManager/CageFS.py | 8 ++- firewall/templates/firewall/imunifyAV.html | 63 ++++++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletion(-) diff --git a/CLManager/CageFS.py b/CLManager/CageFS.py index 00ecfb0d8..9baaa8bc6 100644 --- a/CLManager/CageFS.py +++ b/CLManager/CageFS.py @@ -218,11 +218,17 @@ ui_path_owner = lscpd:lscpd ## + command = 'pkill -f "bash imav-deploy.sh"' + ServerStatusUtil.executioner(command, statusFile) + if not os.path.exists('imav-deploy.sh'): command = 'wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh' ServerStatusUtil.executioner(command, statusFile) - command = 'bash imav-deploy.sh' + command = 'bash imav-deploy.sh --uninstall --yes' + ServerStatusUtil.executioner(command, statusFile) + + command = 'bash imav-deploy.sh --yes' ServerStatusUtil.executioner(command, statusFile) logging.CyberCPLogFileWriter.statusWriter(ServerStatusUtil.lswsInstallStatusPath, diff --git a/firewall/templates/firewall/imunifyAV.html b/firewall/templates/firewall/imunifyAV.html index 0571bb6de..ffa4c6083 100755 --- a/firewall/templates/firewall/imunifyAV.html +++ b/firewall/templates/firewall/imunifyAV.html @@ -36,6 +36,69 @@ +
+
+

+ {% trans "ImunifyAV Not Working?" %} +

+
+ +

{% trans "If for some reason ImunifyAV is not working, you can re-install it using the form below." %}

+ + +
+
+ +
+
+

We will run following commands again:

+
+

wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh

+
+

bash imav-deploy.sh

+
+ +

If you can still not access ImunifyAV after re-installation, just run + the above commands on your server terminal.

+
+
+ +
+ +
+ +
+
+ +
+
+
+
+ + + +
+ +
+ +
+ +
+ +
+
+ +
+ +
+
+
+ {% endblock %}