bug fix: disable upgrading imunify until the issue is resolved at their end

This commit is contained in:
Usman Nasir 2022-10-15 14:04:05 +05:00
parent 12c245e5a8
commit 7427667c14
1 changed files with 17 additions and 15 deletions

View File

@ -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.")