mirror of https://github.com/fail2ban/fail2ban
fixed a bug with duplicate information in man page, removed link to sbin and now it should start from /usr/bin
parent
2a8be4bf8c
commit
02c1a20bf6
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DAEMON=/usr/sbin/fail2ban
|
||||
DAEMON=/usr/bin/fail2ban
|
||||
NAME=fail2ban
|
||||
DESC=fail2ban
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/usr/bin/fail2ban /usr/sbin/fail2ban
|
|
@ -10,8 +10,8 @@ fail2ban \- Ban IPs that make too many password failure
|
|||
|
||||
[REPORTING BUGS]
|
||||
|
||||
We know that man page has duplicate of options. That will be
|
||||
fixed soon. Hang on and don't report it for now.
|
||||
Please report Debian related bugs via Debian bug tracking system
|
||||
http://www.debian.org/Bugs/
|
||||
|
||||
[copyright]
|
||||
Copyright (c) 2004 Cyril Jaquier
|
||||
|
|
|
@ -236,8 +236,9 @@ if __name__ == "__main__":
|
|||
|
||||
# Reads the command line options.
|
||||
try:
|
||||
optList, args = getopt.getopt(sys.argv[1:], 'hvbdkc:l:t:i:r:e:w:p:')
|
||||
optList, args = getopt.getopt(sys.argv[1:], 'hvbdkc:l:t:i:r:e:w:p:', ['help','version'])
|
||||
except getopt.GetoptError:
|
||||
sys.stderr.write("Error during parsing of command line parameters\n");
|
||||
usage()
|
||||
|
||||
# Pre-parsing of command line options for the -c option
|
||||
|
@ -361,8 +362,11 @@ if __name__ == "__main__":
|
|||
logSys.warn("Using default value")
|
||||
|
||||
for opt in optList:
|
||||
if opt[0] == "-h":
|
||||
if opt[0] in ["-h","--help"]:
|
||||
usage()
|
||||
if opt[0] in ["--version"]:
|
||||
print version
|
||||
sys.exit(0)
|
||||
if opt[0] == "-v":
|
||||
conf["verbose"] = conf["verbose"] + 1
|
||||
if opt[0] == "-b":
|
||||
|
|
Loading…
Reference in New Issue