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