diff --git a/plugins/fail2ban/index.py b/plugins/fail2ban/index.py index 12fdc5a62..57832bae0 100755 --- a/plugins/fail2ban/index.py +++ b/plugins/fail2ban/index.py @@ -142,15 +142,15 @@ def initDreplace(): # mw.execShell('chmod +x ' + file_bin) # systemd - systemDir = mw.systemdCfgDir() - systemService = systemDir + '/' + getPluginName() + '.service' - if os.path.exists(systemDir) and not os.path.exists(systemService): - systemServiceTpl = getPluginDir() + '/init.d/' + getPluginName() + '.service.tpl' - service_path = mw.getServerDir() - se_content = mw.readFile(systemServiceTpl) - se_content = se_content.replace('{$SERVER_PATH}', service_path) - mw.writeFile(systemService, se_content) - mw.execShell('systemctl daemon-reload') + # systemDir = mw.systemdCfgDir() + # systemService = systemDir + '/' + getPluginName() + '.service' + # if os.path.exists(systemDir) and not os.path.exists(systemService): + # systemServiceTpl = getPluginDir() + '/init.d/' + getPluginName() + '.service.tpl' + # service_path = mw.getServerDir() + # se_content = mw.readFile(systemServiceTpl) + # se_content = se_content.replace('{$SERVER_PATH}', service_path) + # mw.writeFile(systemService, se_content) + # mw.execShell('systemctl daemon-reload') return file_bin