Ticket #38961: patch-fail2ban-regex.diff

File patch-fail2ban-regex.diff, 742 bytes (added by fclaire@…, 12 years ago)
  • fail2ban-regex

    old new  
    2525# fix for bug #343821
    2626if os.path.abspath(__file__).startswith('/usr/'):
    2727        # makes sense to use system-wide library iff -regex is also under /usr/
    28     sys.path.insert(1, "/usr/share/fail2ban")
     28    sys.path.insert(1, "@@PREFIX@@/share/fail2ban")
    2929
    3030from client.configparserinc import SafeConfigParserWithIncludes
    3131from ConfigParser import NoOptionError, NoSectionError, MissingSectionHeaderError
     
    6262       
    6363        test = None
    6464
    65         CONFIG_DEFAULTS = {'configpath' : "/etc/fail2ban/"}
     65        CONFIG_DEFAULTS = {'configpath' : "@@PREFIX@@/etc/fail2ban/"}
    6666
    6767        def __init__(self):
    6868                self.__filter = Filter(None)