From a1458230348e5d1aece6f80426912d7497bcfb3a Mon Sep 17 00:00:00 2001 From: usmannasir Date: Tue, 15 Oct 2024 14:53:26 +0500 Subject: [PATCH] remove tmp code for csf --- plogical/upgrade.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 423f467b5..48a2ccb2d 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -3555,6 +3555,17 @@ pm.max_spare_servers = 3 #command = 'csf -uf' #Upgrade.executioner(command, 'fix csf if there', 0) + if os.path.exists('/etc/csf'): + execPath = "sudo /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/csf.py" + execPath = execPath + " removeCSF" + Upgrade.executioner(execPath, 'fix csf if there', 0) + + execPath = "sudo /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/csf.py" + execPath = execPath + " installCSF" + Upgrade.executioner(execPath, 'fix csf if there', 0) + + + # if os.path.exists('/usr/local/CyberCP/configservercsf'): # command = 'rm -f /usr/local/CyberCP/configservercsf/signals.py' # Upgrade.executioner(command, 'remove /usr/local/CyberCP/configservercsf/signals.py', 1)