Update to handle f2b_diable with s6rc init. Include #565.

This commit is contained in:
TheSpad
2023-01-26 17:24:31 +00:00
parent 1b2fd98e58
commit c225cff982
9 changed files with 46 additions and 10 deletions
@@ -0,0 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# Disable f2b if requested
if [[ ${CROWDSEC_F2B_DISABLE,,} == "true" ]]; then
echo "**** Disabling fail2ban Service ****"
s6-svc -d /run/service/svc-fail2ban
fi
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-swag-crowdsec-f2b/run