Update index.py

pull/621/head
Mr Chen 10 months ago
parent 407b317f01
commit 4e21b136d7
  1. 10
      plugins/fail2ban/index.py

@ -17,6 +17,11 @@ if mw.isAppleSystem():
def getPluginName(): def getPluginName():
return 'fail2ban' return 'fail2ban'
def f2bDir():
return '/run/fail2ban'
def f2bEtcDir():
return '/etc/fail2ban'
def getPluginDir(): def getPluginDir():
return mw.getPluginDir() + '/' + getPluginName() return mw.getPluginDir() + '/' + getPluginName()
@ -38,7 +43,7 @@ def getInitDFile():
def getConf(): def getConf():
path = getServerDir() + "/redis.conf" path = f2bEtcDir() + "/fail2ban.conf"
return path return path
@ -100,9 +105,6 @@ def readConfigTpl():
def runLog(): def runLog():
return '/var/log/fail2ban.log' return '/var/log/fail2ban.log'
def f2bDir():
return '/run/fail2ban'
def getPidFile(): def getPidFile():
f2dir = f2bDir() f2dir = f2bDir()
return f2dir+'/fail2ban.pid' return f2dir+'/fail2ban.pid'

Loading…
Cancel
Save