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
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
DAEMON=/usr/sbin/fail2ban
|
DAEMON=/usr/bin/fail2ban
|
||||||
NAME=fail2ban
|
NAME=fail2ban
|
||||||
DESC=fail2ban
|
DESC=fail2ban
|
||||||
PIDFILE=/var/run/$NAME.pid
|
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]
|
[REPORTING BUGS]
|
||||||
|
|
||||||
We know that man page has duplicate of options. That will be
|
Please report Debian related bugs via Debian bug tracking system
|
||||||
fixed soon. Hang on and don't report it for now.
|
http://www.debian.org/Bugs/
|
||||||
|
|
||||||
[copyright]
|
[copyright]
|
||||||
Copyright (c) 2004 Cyril Jaquier
|
Copyright (c) 2004 Cyril Jaquier
|
||||||
|
|
|
@ -236,8 +236,9 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
# Reads the command line options.
|
# Reads the command line options.
|
||||||
try:
|
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:
|
except getopt.GetoptError:
|
||||||
|
sys.stderr.write("Error during parsing of command line parameters\n");
|
||||||
usage()
|
usage()
|
||||||
|
|
||||||
# Pre-parsing of command line options for the -c option
|
# Pre-parsing of command line options for the -c option
|
||||||
|
@ -361,8 +362,11 @@ if __name__ == "__main__":
|
||||||
logSys.warn("Using default value")
|
logSys.warn("Using default value")
|
||||||
|
|
||||||
for opt in optList:
|
for opt in optList:
|
||||||
if opt[0] == "-h":
|
if opt[0] in ["-h","--help"]:
|
||||||
usage()
|
usage()
|
||||||
|
if opt[0] in ["--version"]:
|
||||||
|
print version
|
||||||
|
sys.exit(0)
|
||||||
if opt[0] == "-v":
|
if opt[0] == "-v":
|
||||||
conf["verbose"] = conf["verbose"] + 1
|
conf["verbose"] = conf["verbose"] + 1
|
||||||
if opt[0] == "-b":
|
if opt[0] == "-b":
|
||||||
|
|
Loading…
Reference in New Issue