diff --git a/plugins/fail2ban/index.py b/plugins/fail2ban/index.py index 8babc4e64..23452d33d 100755 --- a/plugins/fail2ban/index.py +++ b/plugins/fail2ban/index.py @@ -135,13 +135,13 @@ def initDreplace(): file_bin = initD_path + '/' + getPluginName() # config replace - dst_conf = getConf() - dst_conf_init = getServerDir() + '/init.pl' - if not os.path.exists(dst_conf_init): - content = mw.readFile(getConfTpl()) - content = contentReplace(content) - mw.writeFile(dst_conf, content) - mw.writeFile(dst_conf_init, 'ok') + # dst_conf = getConf() + # dst_conf_init = getServerDir() + '/init.pl' + # if not os.path.exists(dst_conf_init): + # content = mw.readFile(getConfTpl()) + # content = contentReplace(content) + # mw.writeFile(dst_conf, content) + # mw.writeFile(dst_conf_init, 'ok') # systemd systemDir = mw.systemdCfgDir()