mirror of
https://github.com/fail2ban/fail2ban.git
synced 2025-11-26 14:20:19 +08:00
15 lines
261 B
Bash
Executable File
15 lines
261 B
Bash
Executable File
#!/bin/bash
|
|
# This script carries out conversion of fail2ban to python3
|
|
# A backup of any converted files are created with ".bak"
|
|
# extension
|
|
|
|
set -eu
|
|
|
|
if 2to3 -w --no-diffs bin/* fail2ban;then
|
|
echo "Success!" >&2
|
|
exit 0
|
|
else
|
|
echo "Fail!" >&2
|
|
exit 1
|
|
fi
|