Ticket #40121: patch-fail2ban-server.diff

File patch-fail2ban-server.diff, 802 bytes (added by nonstop.server@…, 11 years ago)
  • fail2ban-server

    old new  
    2929try:
    3030        from common.version import version
    3131except ImportError, e:
    32         sys.path.insert(1, "/usr/share/fail2ban")
     32        sys.path.insert(1, "@@PREFIX@@/share/fail2ban")
    3333        from common.version import version
    3434
    3535from server.server import Server
     
    5353                self.__conf = dict()
    5454                self.__conf["background"] = True
    5555                self.__conf["force"] = False
    56                 self.__conf["socket"] = "/var/run/fail2ban/fail2ban.sock"
    57                 self.__conf["pidfile"] = "/var/run/fail2ban/fail2ban.pid"
     56                self.__conf["socket"] = "@@PREFIX@@/var/run/fail2ban/fail2ban.sock"
     57                self.__conf["pidfile"] = "@@PREFIX@@/var/run/fail2ban/fail2ban.pid"
    5858
    5959        def dispVersion(self):
    6060                print "Fail2Ban v" + version