Ticket #40121: patch-fail2ban-regex.diff

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

    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 client.configparserinc import SafeConfigParserWithIncludes
     
    7070
    7171        test = None
    7272
    73         CONFIG_DEFAULTS = {'configpath' : "/etc/fail2ban/"}
     73        CONFIG_DEFAULTS = {'configpath' : "@@PREFIX@@/etc/fail2ban/"}
    7474
    7575        def __init__(self):
    7676                self.__filter = Filter(None)
     
    116116                print
    117117                print "Log:"
    118118                print "    string                  a string representing a log line"
    119                 print "    filename                path to a log file (/var/log/auth.log)"
     119                print "    filename                path to a log file (/var/log/secure.log)"
    120120                print
    121121                print "Regex:"
    122122                print "    string                  a string representing a 'failregex'"