fixed a bug with duplicate information in man page, removed link to sbin and now it should start from /usr/bin

debian-releases/etch
Yaroslav Halchenko 2005-07-08 04:27:03 +00:00
parent 2a8be4bf8c
commit 02c1a20bf6
4 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -1 +0,0 @@
/usr/bin/fail2ban /usr/sbin/fail2ban

View File

@ -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

View File

@ -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":