From 0ea6c30c9b40373cae44e5024c6ece28c36a3b0d Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Fri, 3 Feb 2023 07:09:23 +0100 Subject: [PATCH] fix blacklist script --- roles/deploy-web/files/blacklist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/deploy-web/files/blacklist.sh b/roles/deploy-web/files/blacklist.sh index 848a680..dd05292 100755 --- a/roles/deploy-web/files/blacklist.sh +++ b/roles/deploy-web/files/blacklist.sh @@ -18,7 +18,7 @@ do echo "Nouvelle IP blacklisté" > ${MAIL} cat /tmp/blacklist_400 /tmp/blacklist_404 |grep -f ${BLACKLIST} -v |sort |uniq >> ${MAIL} echo "IP dejà blacklisté : " >> ${MAIL} - cat /tmp/blacklist_400 /tmp/blacklist_404 |grep -f ${BLACKLIST} -v |sort |uniq >> /tmp/blacklist + cat /tmp/blacklist_400 /tmp/blacklist_404 |grep -f ${BLACKLIST} -v |sort |uniq >> ${BLACKLIST} cat ${BLACKLIST} >> ${MAIL} cat ${MAIL} |mail -s "Blacklist IP ${i}" valczebackup@gmail.com fi