From 164c6cddd42690dd85eacd44a8ebea8d4e25eccf Mon Sep 17 00:00:00 2001 From: spyngamerman <1596188+spyngamerman@users.noreply.github.com> Date: Thu, 10 Oct 2019 11:57:51 -0400 Subject: [PATCH] Update csf.py fix error on Ubuntu where regex replaces all Iptables lines *Error* The path to iptables is either not set or incorrect for IPTABLES [] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/Sanity.pm line 36. Compilation failed in require at /usr/sbin/csf line 22. BEGIN failed--compilation aborted at /usr/sbin/csf line 22. --- plogical/csf.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plogical/csf.py b/plogical/csf.py index 181318bd2..b4c5e5812 100755 --- a/plogical/csf.py +++ b/plogical/csf.py @@ -277,8 +277,6 @@ class CSF(multi.Thread): writeToConf.writelines('POP3D_LOG = "/var/log/mail.log"\n') elif items.find('IMAPD_LOG =') > -1 and items.find('=') > -1 and (items[0] != '#'): writeToConf.writelines('IMAPD_LOG = "/var/log/mail.log"\n') - elif items.find('IPTABLES_LOG =') > -1 and items.find('=') > -1 and (items[0] != '#'): - writeToConf.writelines('IPTABLES_LOG = "/var/log/kern.log"\n') elif items.find('SYSLOG_LOG =') > -1 and items.find('=') > -1 and (items[0] != '#'): writeToConf.writelines('SYSLOG_LOG = "/var/log/syslog"\n') else: