Update to mystic 112a48

This commit is contained in:
Mario Fetka 2023-01-18 20:41:49 +01:00
parent a9a657ae1c
commit d326546e67
3 changed files with 6 additions and 5 deletions

View File

@ -39,7 +39,7 @@ if [ $BAN_UNBAN_ENABLE = "true" ]; then
if [ $DO_BAN = "unban" ]; then
/usr/bin/fail2ban-client set mysticbbs unbanip ${BAN_IP}
if [ $BAN_UNBAN_MYSTIC = "true" ]; then
sed -e "/${BAN_IP}/d" -i ${MYSTIC_DIR}/data/blacklist.txt
sed -e "/${BAN_IP}/d" -i ${MYSTIC_DIR}/data/denylist.txt
fi
fi
fi
@ -51,7 +51,7 @@ if [ $BAN_UNBAN_ENABLE = "true" ]; then
if [ $DO_BAN = "unban" ]; then
echo ${BAN_IP} >> /opt/ipban/unban.txt
if [ $BAN_UNBAN_MYSTIC = "true" ]; then
sed -e "/${BAN_IP}/d" -i ${MYSTIC_DIR}/data/blacklist.txt
sed -e "/${BAN_IP}/d" -i ${MYSTIC_DIR}/data/denylist.txt
fi
fi
fi

View File

@ -12,9 +12,9 @@ actionstop = rm -f /var/run/fail2ban/fail2ban.mysticbbs
actioncheck =
actionban = grep -qxF '<ip>' @MYSTIC_DIR@/data/blacklist.txt || echo '<ip>' >> @MYSTIC_DIR@/data/blacklist.txt
actionban = grep -qxF '<ip>' @MYSTIC_DIR@/data/denylist.txt || echo '<ip>' >> @MYSTIC_DIR@/data/denylist.txt
actionunban = sed -e '/<ip>/d' -i @MYSTIC_DIR@/data/blacklist.txt
actionunban = sed -e '/<ip>/d' -i @MYSTIC_DIR@/data/denylist.txt
[Init]

View File

@ -25,7 +25,8 @@ IPBAN_GROUP=$(getent group ipban)
LIBDIR=/usr/lib/${ARCH}
MYSTIC_VER="112a47"
MYSTIC_VER="112a48"
if [ "${ARCH}" = "x86_64-linux-gnu" ]; then
INIMOD_ARCH="64"
MYSTIC_ARCH="l64"