Allow disabling f2b service

This commit is contained in:
TheSpad
2022-03-25 21:14:47 +00:00
parent a92330b0d4
commit b0b6203ef4
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -79,4 +79,10 @@ rm -rf \
/tmp/crowdsec \
/tmp/crowdsec.tar.gz
# Disable f2b if requested
if [[ $CROWDSEC_F2B_DISABLE == "true" ]]; then
echo "**** Disabling fail2ban Service ****"
touch /etc/services.d/fail2ban/down
fi
echo "**** Successfully configured CrowdSec nginx Bouncer ${CROWDSEC_VERSION} ****"