From b365d8418dc715a3a23388465edbddd79dca742b Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 19 Aug 2020 14:19:00 +0500 Subject: [PATCH] reinstall imunifyav if found --- plogical/upgrade.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index a9b22b221..c3dc6ebd7 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -2347,6 +2347,12 @@ vmail command = "yum reinstall imunify360-firewall-generic -y" Upgrade.executioner(command, command, 1) + imunifyAVPath = '/etc/sysconfig/imunify360/integration.conf' + + if os.path.exists(imunifyAVPath): + command = "yum reinstall imunify-antivirus-generic -y" + Upgrade.executioner(command, command, 1) + Upgrade.stdOut("Upgrade Completed.")