mirror of https://github.com/fail2ban/fail2ban
DOC: Revert setup.py messages to use print statement
parent
70bcb0e32f
commit
36097ffc3e
33
setup.py
33
setup.py
|
@ -117,26 +117,25 @@ for directory in elements:
|
||||||
obsoleteFiles.append(path)
|
obsoleteFiles.append(path)
|
||||||
|
|
||||||
if obsoleteFiles:
|
if obsoleteFiles:
|
||||||
sys.stdout.write("\n")
|
print("")
|
||||||
sys.stdout.write("Obsolete files from previous Fail2Ban versions " \
|
print("Obsolete files from previous Fail2Ban versions were found on "
|
||||||
"were found on your system.\n")
|
"your system.")
|
||||||
sys.stdout.write("Please delete them:\n")
|
print("Please delete them:")
|
||||||
sys.stdout.write("\n")
|
print("")
|
||||||
for f in obsoleteFiles:
|
for f in obsoleteFiles:
|
||||||
sys.stdout.write("\t" + f)
|
print("\t" + f)
|
||||||
sys.stdout.write("\n")
|
print("")
|
||||||
|
|
||||||
if isdir("/usr/lib/fail2ban"):
|
if isdir("/usr/lib/fail2ban"):
|
||||||
sys.stdout.write("\n")
|
print("")
|
||||||
sys.stdout.write("Fail2ban is not installed under /usr/lib anymore. " \
|
print("Fail2ban is not installed under /usr/lib anymore. The new "
|
||||||
"The new location is under /usr/share. Please remove the " \
|
"location is under /usr/share. Please remove the directory "
|
||||||
"directory /usr/lib/fail2ban and everything under this directory.\n")
|
"/usr/lib/fail2ban and everything under this directory.")
|
||||||
sys.stdout.write("\n")
|
print("")
|
||||||
|
|
||||||
# Update config file
|
# Update config file
|
||||||
if sys.argv[1] == "install":
|
if sys.argv[1] == "install":
|
||||||
sys.stdout.write("\n")
|
print("")
|
||||||
sys.stdout.write("Please do not forget to update your configuration "
|
print("Please do not forget to update your configuration files.")
|
||||||
"files.\n")
|
print("They are in /etc/fail2ban/.")
|
||||||
sys.stdout.write("They are in /etc/fail2ban/.\n")
|
print("")
|
||||||
sys.stdout.write("\n")
|
|
||||||
|
|
Loading…
Reference in New Issue