From 7427667c14c2ddbc2fcb7bfa35870155d4a343dc Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sat, 15 Oct 2022 14:04:05 +0500 Subject: [PATCH] bug fix: disable upgrading imunify until the issue is resolved at their end --- plogical/upgrade.py | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 9a66c681e..9da9b6c0e 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -2851,23 +2851,25 @@ vmail Upgrade.installCLScripts() Upgrade.runSomeImportantBash() - ## Move static files + # ## Move static files + # + # imunifyPath = '/usr/local/CyberCP/public/imunify' + # + # if os.path.exists(imunifyPath): + # 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' + # Upgrade.executioner(command, command, 1) - imunifyPath = '/usr/local/CyberCP/public/imunify' - if os.path.exists(imunifyPath): - 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' - Upgrade.executioner(command, command, 1) Upgrade.stdOut("Upgrade Completed.")