From 6d503b50a0f15692afe6105cb8f29603916c3bf1 Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Tue, 8 Aug 2023 12:41:19 +0500 Subject: [PATCH 1/2] fix for https://github.com/usmannasir/cyberpanel/issues/1098 and https://app.clickup.com/t/866arh3r9 --- plogical/upgrade.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 481125153..f23d6d9f4 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -3046,14 +3046,14 @@ vmail # command = "yum reinstall imunify360-firewall-generic -y" # Upgrade.executioner(command, command, 1) # - # imunifyAVPath = '/etc/sysconfig/imunify360/integration.conf' - # - # if os.path.exists(imunifyAVPath): - # execPath = "/usr/local/CyberCP/bin/python /usr/local/CyberCP/CLManager/CageFS.py" - # command = execPath + " --function submitinstallImunifyAV" - # Upgrade.executioner(command, command, 1) - # - # command = 'chmod +x /usr/local/CyberCP/public/imunifyav/bin/execute.py' + imunifyAVPath = '/etc/sysconfig/imunify360/integration.conf' + + if os.path.exists(imunifyAVPath): + execPath = "/usr/local/CyberCP/bin/python /usr/local/CyberCP/CLManager/CageFS.py" + command = execPath + " --function submitinstallImunifyAV" + Upgrade.executioner(command, command, 1) + + command = 'chmod +x /usr/local/CyberCP/public/imunifyav/bin/execute.py' # Upgrade.executioner(command, command, 1) Upgrade.stdOut("Upgrade Completed.") From 16f9d79744be88e639e5a2eb3e7b10552f5f194a Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Tue, 8 Aug 2023 12:42:46 +0500 Subject: [PATCH 2/2] fix for https://github.com/usmannasir/cyberpanel/issues/1098 and https://app.clickup.com/t/866arh3r9 --- plogical/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index f23d6d9f4..ef969ca67 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -3054,7 +3054,7 @@ vmail Upgrade.executioner(command, command, 1) command = 'chmod +x /usr/local/CyberCP/public/imunifyav/bin/execute.py' - # Upgrade.executioner(command, command, 1) + Upgrade.executioner(command, command, 1) Upgrade.stdOut("Upgrade Completed.")