fail2ban/fail2ban-2to3

15 lines
261 B
Plaintext
Raw Normal View History

#!/bin/bash
# This script carries out conversion of fail2ban to python3
# A backup of any converted files are created with ".bak"
# extension
set -eu
2013-04-13 15:58:05 +00:00
if 2to3 -w --no-diffs bin/* fail2ban;then
echo "Success!" >&2
exit 0
else
echo "Fail!" >&2
exit 1
fi